Documentation
¶
Overview ¶
Package lang provides definitions to specify translation language for template selection and output rendering.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Default language (hard to get around) Default = "eng" // ISO639-3 )
Functions ¶
This section is empty.
Types ¶
type Language ¶
Language is used to set and get language translation to be used for rendering output.
func LanguageFromCode ¶
LanguageFromCode returns a Language object from the given ISO-639-3 (three-letter) code.
Will fail if an unknown code is provided.
func LanguageFromContext ¶ added in v0.3.0
LanguageFromContext scans the given context for a valid language specification, and if found returns a corresponding language object.
Click to show internal directories.
Click to hide internal directories.