Documentation
¶
Index ¶
- func Date(lang i18n.Languager, t time.Time, style DateStyle) string
- func Duration(lang i18n.Languager, d time.Duration) string
- func Number(lang i18n.Languager, number interface{}) (string, error)
- func RelativeDate(lang i18n.Languager, t time.Time, style DateStyle) string
- func Size(s uint64) string
- func Time(lang i18n.Languager) string
- func TimeSince(lang i18n.Languager, t time.Time) string
- type DateStyle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RelativeDate ¶
RelativeDate works like Date, but uses relative names when possible. e.g. in English "yesterday", "today" and "tomorrow" are the available relative names, but other languages might have more or none of them.
Types ¶
Click to show internal directories.
Click to hide internal directories.