Skip to content

Releases: twharmon/govalid

v1.5.0: Merge pull request #41 from twharmon/err-only

14 Nov 22:45
d719aca
Compare
Choose a tag to compare

Rewrite

10 Jul 15:56
e36b22d
Compare
Choose a tag to compare
Merge pull request #36 from twharmon/rewrite

Rewrite

Simpler API

14 Oct 17:44
12bc229
Compare
Choose a tag to compare

Register is deprecated and no longer needed.

Custom validation rules

23 Oct 22:13
523c00f
Compare
Choose a tag to compare

You can add custom validation rules for string, int64, and float64.

v := govalid.New()
v.AddCustomInt64Rule("even", func(field string, value int64) string {
	if value%2 == 0 {
		return ""
	}
	return fmt.Sprintf("%s must be even", field)
})
type Foo struct {
	Bar int64 `govalid:"req|even"`
}

v1.1.3: Merge pull request #24 from twharmon/flexible-usage

12 Oct 17:17
1e4748a
Compare
Choose a tag to compare

Update go version to 1.15

18 Aug 19:40
930c6d5
Compare
Choose a tag to compare
Merge pull request #23 from twharmon/go-version-update

Update go version

v1.1.1: Merge pull request #8 from twharmon/tests

16 Jan 17:37
2905e48
Compare
Choose a tag to compare

v0.0.2: Merge pull request #7 from twharmon/tag-name

19 Nov 20:17
901fa94
Compare
Choose a tag to compare

v0.0.1: Merge pull request #7 from twharmon/tag-name

23 Aug 17:49
901fa94
Compare
Choose a tag to compare