validate
validate copied to clipboard
⚔ Go package for data validation and filtering. support Map, Struct, Form data. Go通用的数据验证与过滤库,使用简单,内置大部分常用验证、过滤器,支持自定义验证器、自定义消息、字段翻译。
So the question is, how CheckZero config flag exactly works? Could you please provide any code examples?
``` type A struct{ S []string `validate:"required|in:a,b"` } ``` I basically want each element of `S` to be either `a` or `b`, but looks like `in` validation in the tag...
**System (please complete the following information):** - OS: `windows 11` - GO Version: `1.2.2` - Pkg Version: `latest` **Describe the bug** 如题,eqField对于指针类型数据无法正确校验, **To Reproduce** ```go type T struct { FieldA...
Bumps [github.com/gookit/goutil](https://github.com/gookit/goutil) from 0.6.15 to 0.6.16. Release notes Sourced from github.com/gookit/goutil's releases. v0.6.16 Change Log Fixed :bug: fix: fs - ToAbsPath if input is empty will return current work dir...
# Background As we all know `multipart/form-data` generally can holds multiple files with same key. For example: ```curl curl --location 'http://localhost:8088/v1/upload' \ --form 'files=@"/Users/username/test_0.txt"' \ --form 'files=@"/Users/username/test_1.txt"' \ --form 'desc="this...
Bumps [github.com/gookit/goutil](https://github.com/gookit/goutil) from 0.6.15 to 0.6.17. Release notes Sourced from github.com/gookit/goutil's releases. v0.6.17 Change Log Fixed fix: dumper.printRValue panic when unexported fields in the structure are of type time.Time; (#183)...