Releases: tiendc/go-validator
Releases · tiendc/go-validator
v1.2.0
- Added SliceHasElem / SliceHasElemBy for checking slice contains certain values
- Added SliceNotHaveElem / SliceNotHaveElemBy for checking slice not contain certain values
- Added MapHasKey for checking map contains certain values
- Added MapNotHaveKey for checking map not contain certain values
v1.1.0
- Added
SliceUniqueBy
to validate uniqueness with custom key function
- Added
SliceSortBy
to validate sorted status with custom key function
- Added
SliceSortedDescBy
to validate sorted status with custom key function
v1.0.0
- Added SliceContentValidator to validate slice elements
- Added MapContentValidator to validate map entries
- Added support slice-derived types in slice validation functions
- Added support map-derived types in map validation functions
v0.6.0
- Rename Validator.Exec() to Validate() as Exec seems not meaningful.
- Add context to functions as first argument.
v0.5.3
- Upgrade version of external pkg
gofn
v0.5.2
- Add OnError() to Validator interface instead of keeping it in individual Validator structs
- Fix and add more examples to README
v0.5.1
- Added Go docs for functions and types
v0.5.0
Support setting formatter function for specific type of params (#19)
* Support setting formatter function for specific type of params
* Refactor readme
* Add tests