govalidator
govalidator copied to clipboard
[Go] Package of validators and sanitizers for strings, numerics, slices and structs
Heya, playing around with govalidator recently I wanted to validate some input for a **relative** path, it seems that the `isFilePath` function only valides **absolute** paths? E.g: * `isFilePath("relative_file_path") =>...
// ValidateStruct use tags for fields. // result will be equal to `false` if there are any errors. I can't understand why the interface returns result. I mean we can...
IsURL() seems to think `http://foo:b#[email protected]:123/1231?a=b` is a valid URL. I disagree, as 1. either it would parse foo as the hostname and b as the port; and port has to...
See: http://semver.org/ Helps a lot when using go package management tools like https://github.com/golang/dep or vgo since they all depend on a semver format for working with versions of dependencies. Thanks.
Standard validation messages include the value of the validated field, but when you use a custom validation message, this data is lost. Could we have a way of including the...
I want to use Python to implement a validator for a mailbox address, just like isEmail. Because it is a serial of two services, hoping to verify the same effect....
Expected behavior: The call `govalidator.IsDNSName("1.1.1.300")` should return false. Actual behavior: The call returns true.
- Domains should be 253 _including the dots_. [1] - Hostnames should be 255. [2] - BONUS: Hostnames should not have underscores. [3] [1] ["The full domain name may not...
// I`m try to validate struct, but validation work only for Shortcut field with no errors. // It is a bug? // ================= package main import ( "fmt" "github.com/asaskevich/govalidator" )...
Is it possible to support `mime` validation like 1. Image 2. PDF 3. DOC 4. PPT 5. Video or all other validation.