validate
на сайте с 14 апреля 2023, 04:39
validate is a generic Go data validate and filter tool library.
Support quick validate Map, Struct, Request(Form, JSON, url.Values, UploadedFile) data
Validating http.Request automatically collects data based on the request Content-Type value
Supports checking each child value in a slice. eg: v.StringRule("tags.*", "required|string")
Support filter/sanitize/convert data before validate
Support add custom filter/validator func
Support scene settings, verify different fields in different scenes