我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

在Go中国际化日期格式

I currently have the following markup in a Go template:

{{ .PublishedAt.Format " Jan 02, 2006" }}

I'd like to display it using this format, but in another language. Is this a feature built-in in Go? If not, what is the best practice to achieve this?

近期文章

  • AMQP保证以Go(golang)交付
  • 在goclipse中启用断点
  • 基于Go中错误类型的细粒度错误处理
  • 无法为xml创建结构
  • Google App Engine无法找到dev_appserver.py
  • 转到:“ stat hello.go:没有此类文件或目录”
  • 有效地将压缩值写入流
  • 我该如何清理这种返回类型,以应对新主义go-lang?
  • 在Windows上的Go中返回正在处理的打开文件
  • Golang。 在全局变量/上下文中缓存活动用户。 是个好主意?
  • 如何使用beego的本地化?
  • 如何在Go中创建可嵌入的C-API库?
  • Golang oci8存储过程查询产生错误
  • Golang / Gin-gonic:将POST标头强制转换为JSON
  • couchbase golang json原子增量
  • 为什么这样的go代码输出如此?
  • 使用GoClipse时无法跳过
  • 按名称GCS列出存储桶内容
  • 如何从带有revel的会话中删除值
  • 从任务队列解组机体响应

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华