Documentation
¶
Index ¶
- func Get(key string) string
- func GetErrMsg(key string, maps map[string]interface{}) string
- func GetLanguage() string
- func GetMsgByKey(key string) string
- func GetMsgByKeyForCmd(key string) string
- func GetMsgWithDetail(key string, detail string) string
- func GetMsgWithMap(key string, maps map[string]interface{}) string
- func GetMsgWithMapForCmd(key string, maps map[string]interface{}) string
- func GetWithName(key string, name string) string
- func GetWithNameAndErr(key string, name string, err error) string
- func Init()
- func SetCachedDBLanguage(lang string)
- func UseI18n() gin.HandlerFunc
- func UseI18nForCmd(lang string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLanguage ¶
func GetLanguage() string
func GetMsgByKey ¶
func GetMsgByKeyForCmd ¶
func GetMsgWithDetail ¶
func GetMsgWithMap ¶
func GetMsgWithMapForCmd ¶
func GetWithName ¶
func SetCachedDBLanguage ¶
func SetCachedDBLanguage(lang string)
func UseI18n ¶
func UseI18n() gin.HandlerFunc
func UseI18nForCmd ¶
func UseI18nForCmd(lang string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.