Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidCodeLength = errors.New("invalid language code length")
View Source
var ErrUnknownCode = errors.New("unknown language code")
Functions ¶
func CountryCode ¶
CountryCode returns the ISO 3166-1 alpha-2 code for the given country name.
func LangCode2To3Letters ¶ added in v0.6.2
LangCode2To3Letters converts a two-letter ISO 639-1 language code to a three-letter ISO 639-3 language code.
func LangCode3To2Letters ¶ added in v0.6.2
LangCode3To2Letters converts a three-letter ISO 639-3 language code to a two-letter ISO 639-1 language code.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.