Documentation ¶
Index ¶
- func GetErrMsg(key string, maps map[string]interface{}) string
- func GetMsgByKey(key string) string
- func GetMsgByKeyForCmd(key string) string
- func GetMsgWithMap(key string, maps map[string]interface{}) string
- func GetMsgWithMapForCmd(key string, maps map[string]interface{}) string
- func GetMsgWithName(key string, name string, err error) string
- func Init()
- func UseI18n() gin.HandlerFunc
- func UseI18nForCmd(lang string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMsgByKey ¶ added in v1.3.0
func GetMsgByKeyForCmd ¶
func GetMsgWithMap ¶
func GetMsgWithMapForCmd ¶
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.