💯Go Struct and Field validation, including Cross Field, Cross Struct, Map, Slice and Array diving
validator/_examples/gin-upgrading-overriding/main.go

11 lines
140 B

package main
import "github.com/gin-gonic/gin/binding"
func main() {
binding.Validator = new(defaultValidator)
// regular gin logic
}