Documentation ¶ Overview ¶ Package i18n is responsible for internationalization/translation handling and generation. Index ¶ Variables func InitI18nDomain(domain string, args ...Option) type Option Constants ¶ This section is empty. Variables ¶ View Source var ( // G is the shorthand for Gettext. G = func(msgid string) string { return msgid } // NG is the shorthand for NGettext. NG = func(msgid string, msgidPlural string, n uint32) string { return msgid } ) Functions ¶ func InitI18nDomain ¶ func InitI18nDomain(domain string, args ...Option) InitI18nDomain calls bind + set locale to system values. Types ¶ type Option ¶ type Option func(l *i18n) Option is an optional argument for InitI18nDomain. Source Files ¶ View all Source files i18n.go Click to show internal directories. Click to hide internal directories.