Documentation ¶
Index ¶
- Variables
- func LoadMessageFile(path string) error
- func LoadMessageFileBytes(content []byte, path string) error
- func MustSetUp(defaultLanguage language.Tag, messageFilePaths []string, maker BeanMaker)
- func Pack(langs []string, code string, data interface{}, msgArgs ...interface{}) interface{}
- func PackFully(langs []string, code, msg string, data interface{}, msgArgs ...interface{}) interface{}
- func Seal(langs []string, code string, data interface{}, msgArgs ...interface{}) (string, error)
- func SealFully(langs []string, code, msg string, data interface{}, msgArgs ...interface{}) (string, error)
- func SetUp(defaultLanguage language.Tag, messageFilePaths []string, maker BeanMaker) (err error)
- type BeanMaker
Constants ¶
This section is empty.
Variables ¶
View Source
var (
NotSetupError = errorKit.New("Haven’t been set up correctly")
)
Functions ¶
func LoadMessageFile ¶ added in v3.0.20
func LoadMessageFileBytes ¶ added in v3.0.20
Types ¶
Click to show internal directories.
Click to hide internal directories.