Documentation ¶
Overview ¶
Package locale contains definition of commonly used locales.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(locale Locale, formatters Formatters)
Register registers a new set of formatters for the given locale
Types ¶
type Formatters ¶
Formatters is a collection of formatter functions mapped to the closest time duration
func Lookup ¶
func Lookup(locale Locale) Formatters
Lookup performs a lookup on the shared locales table and returns formatter for the given locale, else nil of none is found.
Click to show internal directories.
Click to hide internal directories.