Documentation ¶
Index ¶
Constants ¶
View Source
const (
GKey = "sv"
)
Variables ¶
View Source
var ( GlobalFailFunc = func(err error, ctx iris.Context) { ctx.StatusCode(iris.StatusBadRequest) ctx.JSON(iris.Map{"detail": err.Error()}) return } GlobalContextKey = GKey )
View Source
var (
Warning *log.Logger
)
Functions ¶
func ChangeZhLabelName ¶
func ChangeZhLabelName(newTag string)
Types ¶
type MyValidator ¶
type MyValidator struct { Validate *validator.Validate Trans ut.Translator }
MyValidator 自定义验证器
var GlobalValidator MyValidator
GlobalValidator 全局验证器
Click to show internal directories.
Click to hide internal directories.