Documentation ¶
Index ¶
Constants ¶
View Source
const ( ValidatorKey = "ValidatorKey" TranslatorKey = "TranslatorKey" )
Variables ¶
This section is empty.
Functions ¶
func GetTranslation ¶
func GetTranslation(ctx *gin.Context) (ut.Translator, error)
================================================================= 获取翻译器 * =================================================================
func GetValidator ¶
================================================================= 从 gin中 获取 验证器 * =================================================================
func ParseParamsAndValidate ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.