Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 8.2% on proxy.golang.org

proxy.golang.org : github.com/marksalpeter/validator

Package validator validates the fields of structs by applying the rules embeded in a fields "validate" tag to the value of that field. It is designed to return plain english error messages that refer to field names by their json key. These validation error messages are intended to be presented to the outside world. Rules can be joined together with "and"s (&) and "or"s (|) Comma seperated params can also be passed to a rule, but not every rule has parameters. Check the godoc of the spefic rule you're applying for an example of how to use it. Finally, its worth noting the validators can cross reference other fields.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/marksalpeter/validator
Keywords: api-validator, go, golang, golang-library, model, models, validate, validate-url, validater, validation, validation-library, validator
License: MIT
Latest release: over 2 years ago
First release: almost 4 years ago
Namespace: github.com/marksalpeter
Stars: 6 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 18 days ago

    Loading...
    Readme
    Loading...