package
1.0.26
Repository: https://github.com/askasoft/pango.git
Documentation: pkg.go.dev

# Functions

Clear clear all loaded text resources.
Default returns the default TextBundles instance used by the package-level functions.
Format translate content to target language.
GetBool get a bool value of the key from the text bundle.
GetBundle get target locale ini bundle.
GetFloat get a float64 value of the key from the text bundle.
GetInt get a int value of the key from the text bundle.
GetInt64 get a int64 value of the key from the text bundle.
GetText get the locale text by key.
Load glob and parse text files under root path.
LoadFS glob and parse template files from FS.
NewTextBundles returns a new TextBundles instance.
Replace use strings.Replacer to translate content to the locale language.
SetDefault set the default TextBundles instance used by the package-level functions.

# Structs

TextBundles a localized text resource bundle container.