Skip to content

Release 9.10.0

Compare
Choose a tag to compare
@deankarn deankarn released this 15 Feb 16:55
· 172 commits to v9 since this release
535f852

What's new?

Added new validation hostname_rfc1123 the current hostname validation is for RFC 952

###I want to use the new hostname validation, but don't want to go around and change my struct tags.
No problem, just register an Alias eg.

validate := validator.New()
validate.RegisterAlias("hostname", "hostname_rfc1123")