Skip to content

Releases: tiendc/go-validator

v1.2.0

27 Nov 14:09
1daa322
Compare
Choose a tag to compare
  • 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

27 Nov 10:42
b9c42a3
Compare
Choose a tag to compare
  • 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

21 Nov 06:21
bc55379
Compare
Choose a tag to compare
  • 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.7.0

09 Oct 19:49
18bac03
Compare
Choose a tag to compare
  • Bump version of deps

v0.6.1

11 Sep 10:35
00c42f9
Compare
Choose a tag to compare
  • Update dependencies

v0.6.0

16 Aug 18:46
2a887ed
Compare
Choose a tag to compare
  • Rename Validator.Exec() to Validate() as Exec seems not meaningful.
  • Add context to functions as first argument.

v0.5.3

13 Aug 16:46
0b13a87
Compare
Choose a tag to compare
  • Upgrade version of external pkg gofn

v0.5.2

11 Aug 07:33
0cc0a61
Compare
Choose a tag to compare
  • Add OnError() to Validator interface instead of keeping it in individual Validator structs
  • Fix and add more examples to README

v0.5.1

01 Aug 13:36
3c71a91
Compare
Choose a tag to compare
  • Added Go docs for functions and types

v0.5.0

22 Jul 09:41
073e108
Compare
Choose a tag to compare
Support setting formatter function for specific type of params (#19)

* Support setting formatter function for specific type of params

* Refactor readme

* Add tests