gin-gonic / gin

Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.
https://gin-gonic.com/
MIT License
78.97k stars 8.02k forks source link

add custom validator #3022

Open lshsuper opened 2 years ago

lshsuper commented 2 years ago

this is my idea. you are welcome to give me some advice

https://github.com/lshsuper/gin-validator/blob/master/README.md

dongyinuo commented 2 years ago

this https://gin-gonic.com/docs/examples/custom-validators/ may help you