Localization when using time.Format
问题 In the time package, when formatting a time.Time variable, the output will use the English names for weeks and months as defined in unexported []string slices. How to localize the string, using a different language (hopefully still using Format() )? Example: fmt.Println(time.Now().Format("Mon 2 January 2006")) Output: Tue 28 January 2014 Desired output: Tis 28 Januari 2014 Playground 回答1: As you can see in time package sourcecode that values are hardcoded in source. So, basically, Go doesn't