Versions in this module Expand all Collapse all v0 v0.1.2 Apr 17, 2022 v0.1.1 Apr 14, 2022 Changes in this version + func GetDescriptionByIndex(index int) string + func GetDescriptionByLang(lang string) string + func GetLangByIndex(index int) string + func IndexLang(lang string) int + func IsExist(lang string) bool + func ListLangDescs() []string + func ListLangs() []string + func ReloadLangs(langs ...string) error + func SetMessage(lang, filePath string, appendFiles ...string) error + func SetMessageData(lang string, data []byte) error + func SetMessageDataWithDesc(lang, langDesc string, data []byte) error + func SetMessageWithDesc(lang, langDesc, filePath string, appendFiles ...string) error + func Tr(lang, format string, args ...interface{}) string + type Locale struct + Lang string + func (l Locale) Index() int + func (l Locale) Tr(format string, args ...interface{}) string