govalidator
govalidator copied to clipboard
[Go] Package of validators and sanitizers for strings, numerics, slices and structs
``` type ReportAdd struct { Date time.Time `form:"Date" valid:"required"` } ``` How to format the type?
**Limitation** : Current implementation of IsURL function simply returns false (URL as invalid) if length of URL is more than 2082 runes/characters. It does not check if the URL is...
| Q | A |-------------- | ------ | Documentation | yes | Bugfix | no | BC Break | no | New Feature | no | RFC | no |...
### Bug Report | Q | A |------------ | ------ | Version(s) | v11.0.1 and earlier? #### Summary APIs that return relative URIs fail to validate as `url.ParseRequestURI` is used...
thank u.
Hello, I have tried validating struct element which is slice of strings. I've tried using the following functions but somehow they don't work as expected: "range(min|max)": Range, "length(min|max)": ByteLength, "runelength(min|max)":...
issue #468 added IsInCSV function to validator.go which takes the given string and file path then firstly attempts to find and open the csv file and secondly tries to find...
issue #467 add IsDecimal function which returns true if string is null or ParseFloat method does not generate an error. if the string does not contain a "." , the...
| Q | A |-------------- | ------ | Documentation | no | Bugfix | no | BC Break | no | New Feature | yes | RFC | no |...
### Feature Request | Q | A |------------ | ------ | New Feature | yes | RFC | yes/no | BC Break | yes/no #### Summary