Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Languages = map[string]Language{}/* 671 elements not displayed */
Languages lookup table. Keys are ISO 639-1 and ISO 639-2 codes
Functions ¶
This section is empty.
Types ¶
type Language ¶
type Language struct { Alpha3 string // ISO 639-2 Alpha-3 code Alpha2 string // ISO 639-1 Alpha-2 code English []string // English names of a language French []string // French names of a language }
Language holds language information
func FromCode ¶
FromCode looks up language for given ISO639-1 or ISO639-2 code. Returns nil if not found
func FromEnglishName ¶
FromEnglishName looks up language for given english name. Returns nil if not found
func FromFrenchName ¶
FromFrenchName looks up language for given french name. Returns nil if not found
Click to show internal directories.
Click to hide internal directories.