Documentation ¶
Index ¶
- Variables
- type Alpha2Code
- type Alpha3Code
- type Language
- func ByAlpha2Code(code Alpha2Code) (result Language, ok bool)
- func ByAlpha2CodeErr(code Alpha2Code) (result Language, err error)
- func ByAlpha2CodeStr(code string) (result Language, ok bool)
- func ByAlpha2CodeStrErr(code string) (Language, error)
- func ByAlpha3Code(code Alpha3Code) (result Language, ok bool)
- func ByAlpha3CodeErr(code Alpha3Code) (result Language, err error)
- func ByAlpha3CodeStr(code string) (result Language, ok bool)
- func ByAlpha3CodeStrErr(code string) (result Language, err error)
- func ByName(language Name) (result Language, ok bool)
- func ByNameErr(language Name) (result Language, err error)
- func ByNameStr(language string) (Language, bool)
- func ByNameStrErr(language string) (Language, error)
- type Name
Constants ¶
This section is empty.
Variables ¶
var ( // Afar represents 'Afar' language Afar = Language{ // contains filtered or unexported fields } // Abkhazian represents 'Abkhazian' language Abkhazian = Language{ // contains filtered or unexported fields } // Afrikaans represents 'Afrikaans' language Afrikaans = Language{ // contains filtered or unexported fields } // Akan represents 'Akan' language Akan = Language{ // contains filtered or unexported fields } // Albanian represents 'Albanian' language Albanian = Language{ // contains filtered or unexported fields } // Amharic represents 'Amharic' language Amharic = Language{ // contains filtered or unexported fields } // Arabic represents 'Arabic' language Arabic = Language{ // contains filtered or unexported fields } // Aragonese represents 'Aragonese' language Aragonese = Language{ // contains filtered or unexported fields } // Armenian represents 'Armenian' language Armenian = Language{ // contains filtered or unexported fields } // Assamese represents 'Assamese' language Assamese = Language{ // contains filtered or unexported fields } // Avaric represents 'Avaric' language Avaric = Language{ // contains filtered or unexported fields } // Avestan represents 'Avestan' language Avestan = Language{ // contains filtered or unexported fields } // Aymara represents 'Aymara' language Aymara = Language{ // contains filtered or unexported fields } // Azerbaijani represents 'Azerbaijani' language Azerbaijani = Language{ // contains filtered or unexported fields } // Bashkir represents 'Bashkir' language Bashkir = Language{ // contains filtered or unexported fields } // Bambara represents 'Bambara' language Bambara = Language{ // contains filtered or unexported fields } // Basque represents 'Basque' language Basque = Language{ // contains filtered or unexported fields } // Belarusian represents 'Belarusian' language Belarusian = Language{ // contains filtered or unexported fields } // Bengali represents 'Bengali' language Bengali = Language{ // contains filtered or unexported fields } // BihariLanguages represents 'Bihari languages' language BihariLanguages = Language{ // contains filtered or unexported fields } // Bislama represents 'Bislama' language Bislama = Language{ // contains filtered or unexported fields } // Bosnian represents 'Bosnian' language Bosnian = Language{ // contains filtered or unexported fields } // Breton represents 'Breton' language Breton = Language{ // contains filtered or unexported fields } // Bulgarian represents 'Bulgarian' language Bulgarian = Language{ // contains filtered or unexported fields } // Burmese represents 'Burmese' language Burmese = Language{ // contains filtered or unexported fields } // Catalan represents 'Catalan' language Catalan = Language{ // contains filtered or unexported fields } // Chamorro represents 'Chamorro' language Chamorro = Language{ // contains filtered or unexported fields } // Chechen represents 'Chechen' language Chechen = Language{ // contains filtered or unexported fields } // Chinese represents 'Chinese' language Chinese = Language{ // contains filtered or unexported fields } // ChurchSlavic represents 'Church Slavic' language ChurchSlavic = Language{ // contains filtered or unexported fields } // Chuvash represents 'Chuvash' language Chuvash = Language{ // contains filtered or unexported fields } // Cornish represents 'Cornish' language Cornish = Language{ // contains filtered or unexported fields } // Corsican represents 'Corsican' language Corsican = Language{ // contains filtered or unexported fields } // Cree represents 'Cree' language Cree = Language{ // contains filtered or unexported fields } // Czech represents 'Czech' language Czech = Language{ // contains filtered or unexported fields } // Danish represents 'Danish' language Danish = Language{ // contains filtered or unexported fields } // Divehi represents 'Divehi' language Divehi = Language{ // contains filtered or unexported fields } // Dutch represents 'Dutch' language Dutch = Language{ // contains filtered or unexported fields } // Dzongkha represents 'Dzongkha' language Dzongkha = Language{ // contains filtered or unexported fields } // English represents 'English' language English = Language{ // contains filtered or unexported fields } // Esperanto represents 'Esperanto' language Esperanto = Language{ // contains filtered or unexported fields } // Estonian represents 'Estonian' language Estonian = Language{ // contains filtered or unexported fields } // Ewe represents 'Ewe' language Ewe = Language{ // contains filtered or unexported fields } // Faroese represents 'Faroese' language Faroese = Language{ // contains filtered or unexported fields } // Fijian represents 'Fijian' language Fijian = Language{ // contains filtered or unexported fields } // Finnish represents 'Finnish' language Finnish = Language{ // contains filtered or unexported fields } // French represents 'French' language French = Language{ // contains filtered or unexported fields } // WesternFrisian represents 'Western Frisian' language WesternFrisian = Language{ // contains filtered or unexported fields } // Fulah represents 'Fulah' language Fulah = Language{ // contains filtered or unexported fields } // Georgian represents 'Georgian' language Georgian = Language{ // contains filtered or unexported fields } // German represents 'German' language German = Language{ // contains filtered or unexported fields } // Gaelic represents 'Gaelic' language Gaelic = Language{ // contains filtered or unexported fields } // Irish represents 'Irish' language Irish = Language{ // contains filtered or unexported fields } // Galician represents 'Galician' language Galician = Language{ // contains filtered or unexported fields } // Manx represents 'Manx' language Manx = Language{ // contains filtered or unexported fields } // GreekModern represents 'Greek Modern' language GreekModern = Language{ // contains filtered or unexported fields } // Guarani represents 'Guarani' language Guarani = Language{ // contains filtered or unexported fields } // Gujarati represents 'Gujarati' language Gujarati = Language{ // contains filtered or unexported fields } // Haitian represents 'Haitian' language Haitian = Language{ // contains filtered or unexported fields } // Hausa represents 'Hausa' language Hausa = Language{ // contains filtered or unexported fields } // Hebrew represents 'Hebrew' language Hebrew = Language{ // contains filtered or unexported fields } // Herero represents 'Herero' language Herero = Language{ // contains filtered or unexported fields } // Hindi represents 'Hindi' language Hindi = Language{ // contains filtered or unexported fields } // HiriMotu represents 'Hiri Motu' language HiriMotu = Language{ // contains filtered or unexported fields } // Croatian represents 'Croatian' language Croatian = Language{ // contains filtered or unexported fields } // Hungarian represents 'Hungarian' language Hungarian = Language{ // contains filtered or unexported fields } // Igbo represents 'Igbo' language Igbo = Language{ // contains filtered or unexported fields } // Icelandic represents 'Icelandic' language Icelandic = Language{ // contains filtered or unexported fields } // Ido represents 'Ido' language Ido = Language{ // contains filtered or unexported fields } // SichuanYi represents 'Sichuan Yi' language SichuanYi = Language{ // contains filtered or unexported fields } // Inuktitut represents 'Inuktitut' language Inuktitut = Language{ // contains filtered or unexported fields } // Interlingue represents 'Interlingue' language Interlingue = Language{ // contains filtered or unexported fields } // Interlingua represents 'Interlingua' language Interlingua = Language{ // contains filtered or unexported fields } // Indonesian represents 'Indonesian' language Indonesian = Language{ // contains filtered or unexported fields } // Inupiaq represents 'Inupiaq' language Inupiaq = Language{ // contains filtered or unexported fields } // Italian represents 'Italian' language Italian = Language{ // contains filtered or unexported fields } // Javanese represents 'Javanese' language Javanese = Language{ // contains filtered or unexported fields } // Japanese represents 'Japanese' language Japanese = Language{ // contains filtered or unexported fields } // Kalaallisut represents 'Kalaallisut' language Kalaallisut = Language{ // contains filtered or unexported fields } // Kannada represents 'Kannada' language Kannada = Language{ // contains filtered or unexported fields } // Kashmiri represents 'Kashmiri' language Kashmiri = Language{ // contains filtered or unexported fields } // Kanuri represents 'Kanuri' language Kanuri = Language{ // contains filtered or unexported fields } // Kazakh represents 'Kazakh' language Kazakh = Language{ // contains filtered or unexported fields } // CentralKhmer represents 'Central Khmer' language CentralKhmer = Language{ // contains filtered or unexported fields } // Kikuyu represents 'Kikuyu' language Kikuyu = Language{ // contains filtered or unexported fields } // Kinyarwanda represents 'Kinyarwanda' language Kinyarwanda = Language{ // contains filtered or unexported fields } // Kirghiz represents 'Kirghiz' language Kirghiz = Language{ // contains filtered or unexported fields } // Komi represents 'Komi' language Komi = Language{ // contains filtered or unexported fields } // Kongo represents 'Kongo' language Kongo = Language{ // contains filtered or unexported fields } // Korean represents 'Korean' language Korean = Language{ // contains filtered or unexported fields } // Kuanyama represents 'Kuanyama' language Kuanyama = Language{ // contains filtered or unexported fields } // Kurdish represents 'Kurdish' language Kurdish = Language{ // contains filtered or unexported fields } // Lao represents 'Lao' language Lao = Language{ // contains filtered or unexported fields } // Latin represents 'Latin' language Latin = Language{ // contains filtered or unexported fields } // Latvian represents 'Latvian' language Latvian = Language{ // contains filtered or unexported fields } // Limburgan represents 'Limburgan' language Limburgan = Language{ // contains filtered or unexported fields } // Lingala represents 'Lingala' language Lingala = Language{ // contains filtered or unexported fields } // Lithuanian represents 'Lithuanian' language Lithuanian = Language{ // contains filtered or unexported fields } // Luxembourgish represents 'Luxembourgish' language Luxembourgish = Language{ // contains filtered or unexported fields } // LubaKatanga represents 'Luba-Katanga' language LubaKatanga = Language{ // contains filtered or unexported fields } // Ganda represents 'Ganda' language Ganda = Language{ // contains filtered or unexported fields } // Macedonian represents 'Macedonian' language Macedonian = Language{ // contains filtered or unexported fields } // Marshallese represents 'Marshallese' language Marshallese = Language{ // contains filtered or unexported fields } // Malayalam represents 'Malayalam' language Malayalam = Language{ // contains filtered or unexported fields } // Maori represents 'Maori' language Maori = Language{ // contains filtered or unexported fields } // Marathi represents 'Marathi' language Marathi = Language{ // contains filtered or unexported fields } // Malay represents 'Malay' language Malay = Language{ // contains filtered or unexported fields } // Malagasy represents 'Malagasy' language Malagasy = Language{ // contains filtered or unexported fields } // Maltese represents 'Maltese' language Maltese = Language{ // contains filtered or unexported fields } // Mongolian represents 'Mongolian' language Mongolian = Language{ // contains filtered or unexported fields } // Nauru represents 'Nauru' language Nauru = Language{ // contains filtered or unexported fields } Navajo = Language{ // contains filtered or unexported fields } // NdebeleSouth represents 'Ndebele South' language NdebeleSouth = Language{ // contains filtered or unexported fields } // NdebeleNorth represents 'Ndebele North' language NdebeleNorth = Language{ // contains filtered or unexported fields } // Ndonga represents 'Ndonga' language Ndonga = Language{ // contains filtered or unexported fields } // Nepali represents 'Nepali' language Nepali = Language{ // contains filtered or unexported fields } // NorwegianNynorsk represents 'Norwegian Nynorsk' language NorwegianNynorsk = Language{ // contains filtered or unexported fields } // BokmalNorwegian represents 'Bokmål Norwegian' language BokmalNorwegian = Language{ // contains filtered or unexported fields } // Norwegian represents 'Norwegian' language Norwegian = Language{ // contains filtered or unexported fields } // Chichewa represents 'Chichewa' language Chichewa = Language{ // contains filtered or unexported fields } // Occitan represents 'Occitan' language Occitan = Language{ // contains filtered or unexported fields } // Ojibwa represents 'Ojibwa' language Ojibwa = Language{ // contains filtered or unexported fields } // Oriya represents 'Oriya' language Oriya = Language{ // contains filtered or unexported fields } // Oromo represents 'Oromo' language Oromo = Language{ // contains filtered or unexported fields } // Ossetian represents 'Ossetian' language Ossetian = Language{ // contains filtered or unexported fields } // Panjabi represents 'Panjabi' language Panjabi = Language{ // contains filtered or unexported fields } // Persian represents 'Persian' language Persian = Language{ // contains filtered or unexported fields } // Pali represents 'Pali' language Pali = Language{ // contains filtered or unexported fields } // Polish represents 'Polish' language Polish = Language{ // contains filtered or unexported fields } // Portuguese represents 'Portuguese' language Portuguese = Language{ // contains filtered or unexported fields } // Pushto represents 'Pushto' language Pushto = Language{ // contains filtered or unexported fields } // Quechua represents 'Quechua' language Quechua = Language{ // contains filtered or unexported fields } // Romansh represents 'Romansh' language Romansh = Language{ // contains filtered or unexported fields } // Romanian represents 'Romanian' language Romanian = Language{ // contains filtered or unexported fields } // Rundi represents 'Rundi' language Rundi = Language{ // contains filtered or unexported fields } // Russian represents 'Russian' language Russian = Language{ // contains filtered or unexported fields } // Sango represents 'Sango' language Sango = Language{ // contains filtered or unexported fields } // Sanskrit represents 'Sanskrit' language Sanskrit = Language{ // contains filtered or unexported fields } // Sinhala represents 'Sinhala' language Sinhala = Language{ // contains filtered or unexported fields } // Slovak represents 'Slovak' language Slovak = Language{ // contains filtered or unexported fields } // Slovenian represents 'Slovenian' language Slovenian = Language{ // contains filtered or unexported fields } // NorthernSami represents 'Northern Sami' language NorthernSami = Language{ // contains filtered or unexported fields } // Samoan represents 'Samoan' language Samoan = Language{ // contains filtered or unexported fields } // Shona represents 'Shona' language Shona = Language{ // contains filtered or unexported fields } // Sindhi represents 'Sindhi' language Sindhi = Language{ // contains filtered or unexported fields } // Somali represents 'Somali' language Somali = Language{ // contains filtered or unexported fields } // SothoSouthern represents 'Sotho Southern' language SothoSouthern = Language{ // contains filtered or unexported fields } // Spanish represents 'Spanish' language Spanish = Language{ // contains filtered or unexported fields } // Sardinian represents 'Sardinian' language Sardinian = Language{ // contains filtered or unexported fields } // Serbian represents 'Serbian' language Serbian = Language{ // contains filtered or unexported fields } // Swati represents 'Swati' language Swati = Language{ // contains filtered or unexported fields } // Sundanese represents 'Sundanese' language Sundanese = Language{ // contains filtered or unexported fields } // Swahili represents 'Swahili' language Swahili = Language{ // contains filtered or unexported fields } // Swedish represents 'Swedish' language Swedish = Language{ // contains filtered or unexported fields } // Tahitian represents 'Tahitian' language Tahitian = Language{ // contains filtered or unexported fields } // Tamil represents 'Tamil' language Tamil = Language{ // contains filtered or unexported fields } // Tatar represents 'Tatar' language Tatar = Language{ // contains filtered or unexported fields } // Telugu represents 'Telugu' language Telugu = Language{ // contains filtered or unexported fields } // Tajik represents 'Tajik' language Tajik = Language{ // contains filtered or unexported fields } // Tagalog represents 'Tagalog' language Tagalog = Language{ // contains filtered or unexported fields } // Thai represents 'Thai' language Thai = Language{ // contains filtered or unexported fields } // Tibetan represents 'Tibetan' language Tibetan = Language{ // contains filtered or unexported fields } // Tigrinya represents 'Tigrinya' language Tigrinya = Language{ // contains filtered or unexported fields } // Tonga represents 'Tonga' language Tonga = Language{ // contains filtered or unexported fields } // Tswana represents 'Tswana' language Tswana = Language{ // contains filtered or unexported fields } // Tsonga represents 'Tsonga' language Tsonga = Language{ // contains filtered or unexported fields } // Turkmen represents 'Turkmen' language Turkmen = Language{ // contains filtered or unexported fields } // Turkish represents 'Turkish' language Turkish = Language{ // contains filtered or unexported fields } // Twi represents 'Twi' language Twi = Language{ // contains filtered or unexported fields } // Uighur represents 'Uighur' language Uighur = Language{ // contains filtered or unexported fields } // Ukrainian represents 'Ukrainian' language Ukrainian = Language{ // contains filtered or unexported fields } // Urdu represents 'Urdu' language Urdu = Language{ // contains filtered or unexported fields } // Uzbek represents 'Uzbek' language Uzbek = Language{ // contains filtered or unexported fields } // Venda represents 'Venda' language Venda = Language{ // contains filtered or unexported fields } // Vietnamese represents 'Vietnamese' language Vietnamese = Language{ // contains filtered or unexported fields } // Volapuk represents 'Volapük' language Volapuk = Language{ // contains filtered or unexported fields } // Welsh represents 'Welsh' language Welsh = Language{ // contains filtered or unexported fields } // Walloon represents 'Walloon' language Walloon = Language{ // contains filtered or unexported fields } // Wolof represents 'Wolof' language Wolof = Language{ // contains filtered or unexported fields } // Xhosa represents 'Xhosa' language Xhosa = Language{ // contains filtered or unexported fields } // Yiddish represents 'Yiddish' language Yiddish = Language{ // contains filtered or unexported fields } // Yoruba represents 'Yoruba' language Yoruba = Language{ // contains filtered or unexported fields } // Zhuang represents 'Zhuang' language Zhuang = Language{ // contains filtered or unexported fields } // Zulu represents 'Zulu' language Zulu = Language{ // contains filtered or unexported fields } )
var LanguageByAlpha2 = map[string]Language{}/* 184 elements not displayed */
var LanguageByAlpha3 = map[string]Language{}/* 184 elements not displayed */
var LanguageByName = map[string]Language{}/* 184 elements not displayed */
Functions ¶
This section is empty.
Types ¶
type Alpha2Code ¶
type Alpha2Code string
Alpha2Code represents alpha-2 code
func (Alpha2Code) String ¶
func (code Alpha2Code) String() string
String implementation of Stringer interface
func (*Alpha2Code) UnmarshalJSON ¶
func (code *Alpha2Code) UnmarshalJSON(data []byte) error
UnmarshalJSON unmarshall implementation for alpha2code
func (Alpha2Code) Validate ¶
func (code Alpha2Code) Validate() (err error)
Validate implementation of ozzo-validation Validate interface
type Alpha3Code ¶
type Alpha3Code string
Alpha3Code represents alpha-3 code
func (Alpha3Code) String ¶
func (code Alpha3Code) String() string
String implementation of Stringer interface
func (*Alpha3Code) UnmarshalJSON ¶
func (code *Alpha3Code) UnmarshalJSON(data []byte) error
UnmarshalJSON unmarshall implementation for alpha3code
func (Alpha3Code) Validate ¶
func (code Alpha3Code) Validate() (err error)
Validate implementation of ozzo-validation Validate interface
type Language ¶
type Language struct {
// contains filtered or unexported fields
}
Language struct represents language entity according to ISO 639-1/693-2 standards.
func ByAlpha2Code ¶
func ByAlpha2Code(code Alpha2Code) (result Language, ok bool)
ByAlpha2Code lookup for language by alpha-2 code
func ByAlpha2CodeErr ¶
func ByAlpha2CodeErr(code Alpha2Code) (result Language, err error)
ByAlpha2CodeErr lookup for language by alpha-2 code with error return type
func ByAlpha2CodeStr ¶
ByAlpha2CodeStr lookup for language by alpha-2 code string
func ByAlpha2CodeStrErr ¶
ByAlpha2CodeStrErr lookup for language by alpha-2 code string with error return type
func ByAlpha3Code ¶
func ByAlpha3Code(code Alpha3Code) (result Language, ok bool)
ByAlpha3Code lookup for language by alpha-3 code
func ByAlpha3CodeErr ¶
func ByAlpha3CodeErr(code Alpha3Code) (result Language, err error)
ByAlpha3CodeErr lookup for language by alpha-3 code with error return type
func ByAlpha3CodeStr ¶
ByAlpha3CodeStr lookup for language by alpha-3 code string
func ByAlpha3CodeStrErr ¶
ByAlpha3CodeStrErr lookup for language by alpha-3 code string with error return type
func ByNameStrErr ¶
ByNameStrErr lookup for language by name string with error return type
func (Language) Alpha2Code ¶
func (language Language) Alpha2Code() Alpha2Code
Alpha2Code returns alpha-2 code
func (Language) Alpha2CodeStr ¶
Alpha2CodeStr returns language alpha-2 code string
func (Language) Alpha3Code ¶
func (language Language) Alpha3Code() Alpha3Code
Alpha3Code returns alpha-2 code
func (Language) Alpha3CodeStr ¶
Alpha3CodeStr returns language alpha-2 code string