Documentation ¶ Index ¶ type I18N func NewI18N(defaultTag string, lang map[string]Lang) *I18N type Lang func LoadFileParseLanguage(filename string) (lang Lang, err error) type Locale func NewLocale(bundle *I18N, lang string) (locale *Locale, err error) func (locale *Locale) Translate(id string) string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type I18N ¶ type I18N struct { // contains filtered or unexported fields } func NewI18N ¶ func NewI18N(defaultTag string, lang map[string]Lang) *I18N type Lang ¶ type Lang map[string]string func LoadFileParseLanguage ¶ func LoadFileParseLanguage(filename string) (lang Lang, err error) type Locale ¶ type Locale struct { // contains filtered or unexported fields } func NewLocale ¶ func NewLocale(bundle *I18N, lang string) (locale *Locale, err error) func (*Locale) Translate ¶ func (locale *Locale) Translate(id string) string Source Files ¶ View all Source files i18n.go locale.go parse.go Click to show internal directories. Click to hide internal directories.