mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-22 09:34:33 +08:00
传参错误
# xxx/vendor/github.com/gin-gonic/gin/binding vendor/github.com/gin-gonic/gin/binding/default_validator.go:48:14: undefined: validator.Config vendor/github.com/gin-gonic/gin/binding/default_validator.go:49:29: too many arguments in call to validator.New
This commit is contained in:
parent
91a4459dd2
commit
99e970e138
@ -45,7 +45,7 @@ func (v *defaultValidator) Engine() interface{} {
|
||||
|
||||
func (v *defaultValidator) lazyinit() {
|
||||
v.once.Do(func() {
|
||||
config := &validator.Config{TagName: "binding"}
|
||||
v.validate = validator.New(config)
|
||||
//config := &validator.Config{TagName: "binding"}
|
||||
v.validate = validator.New()
|
||||
})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user