Documentation ¶
Index ¶
Constants ¶
View Source
const ( ComponentCodeset = 1 << iota ComponentTerritory ComponentModifier )
Variables ¶
This section is empty.
Functions ¶
func GetLanguageNames ¶
func GetLanguageNames() []string
func GetLocaleVariants ¶
* Compute all interesting variants for a given locale name - * by stripping off different components of the value. * * For simplicity, we assume that the locale is in * X/Open format: language[_territory][.codeset][@modifier]
Types ¶
type Components ¶
type Components struct { Language string Territory string Codeset string Modifier string Mask uint }
func ExplodeLocale ¶
func ExplodeLocale(locale string) *Components
ExplodeLocale Break an X/Open style locale specification into components
Click to show internal directories.
Click to hide internal directories.