Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TimeLayouts = []string{ time.RFC3339, "2006-01-02T15:04:05", time.RFC1123Z, time.RFC1123, time.RFC822Z, time.RFC822, time.RFC850, time.ANSIC, time.UnixDate, time.RubyDate, "2006-01-02 15:04:05.999999999 -0700 MST", "2006-01-02", "02 Jan 2006", "2006-01-02T15:04:05-0700", "2006-01-02 15:04:05 -07:00", "2006-01-02 15:04:05 -0700", "2006-01-02 15:04:05Z07:00", "2006-01-02 15:04:05Z0700", "2006-01-02 15:04:05", time.Kitchen, time.Stamp, time.StampMilli, time.StampMicro, time.StampNano, }
TimeLayouts contains predefined layouts used by the ParseTime function.
This list of layouts is the same used by Hugo's time function. It is copyright 2017 The Hugo Authors and licensed under the Apache license. See https://github.com/gohugoio/hugo/blob/master/tpl/time/time.go.
Functions ¶
func ApproximateFloatToString ¶
ApproximateFloatToString returns a decimal approximation of the Float value.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.