github.com/devnw/validator
Package validator sets up several methods for simple validation as well as setting up an interface which when implemented allows for custom validation logic by the implementor. `Valid()` returns a boolean indicating if the value(s) passed into it are valid based on the different types. `Assert()` returns an error indicating `nil` if the values are valid. Otherwise `Assert()` returns an error indicating the index of the value(s) passed into it as to which was determined to be invalid.
Ecosystem
proxy.golang.org
proxy.golang.org
Latest Release
over 4 years ago
v1.0.8
over 4 years ago
Versions
9
9
Dependent Packages
10
10
Dependent Repos
9
9
Loading...
Readme
Loading...
Links
| Registry | proxy.golang.org |
| Source | Repository |
| Docs | Documentation |
| JSON API | View JSON |
| CodeMeta | codemeta.json |
Package Details
| PURL |
pkg:golang/github.com/devnw/validator
spec |
| License | MIT |
| Namespace | github.com/devnw |
| First Release | over 6 years ago |
| Last Synced | 13 days ago |
Repository
| Stars | 2 on GitHub |
| Forks | 0 on GitHub |
Rankings on proxy.golang.org
Overall
Top 9.7%
Dependent packages
Top 1.7%
Dependent repos
Top 1.7%