How do I convert date to the string in go using locale?
问题 I convert date to a string this way: d.Format("Mon 02. Jan") and I get something like Fri 27. Jan How can I switch the locale and get the string in other language? 回答1: You can't. The Go standard library does not contain localized month, day and zone names. The names are wired into the time package. For example, the name of the months returned by Month.String() are stored in the unexported time.month global variable: var months = [...]string{ "January", "February", "March", "April", "May",