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
Top 1.9% dependent packages on proxy.golang.org
Top 3.5% dependent repos on proxy.golang.org

proxy.golang.org : github.com/go-courier/validator

Each Validator have at least two process methods, one for 'Parsing' and one for 'Validating'. In 'Parsing' stage, we call validator as 'ValidatorCreator', and it will be register to some 'ValidatorMgr' for caching. There are common 'Rule DSL' below: Then the parsed rule will be transform to special validators: @string: https://godoc.org/github.com/go-courier/validator#StringValidator @uint: https://godoc.org/github.com/go-courier/validator#UintValidator @int: https://godoc.org/github.com/go-courier/validator#IntValidator @float: https://godoc.org/github.com/go-courier/validator#FloatValidator @struct: https://godoc.org/github.com/go-courier/validator#StructValidator @map: https://godoc.org/github.com/go-courier/validator#MapValidator @slice: https://godoc.org/github.com/go-courier/validator#SliceValidator We can create validator by 'Rule DSL', and also can configure them by validator struct field as conditions. Then call the method `Validate(v interface{}) error` to do value validations.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/go-courier/validator
Keywords: go, validator
License: MIT
Latest release: almost 3 years ago
First release: almost 6 years ago
Namespace: github.com/go-courier
Dependent packages: 8
Dependent repositories: 2
Stars: 2 on GitHub
Forks: 2 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 30 days ago

    Loading...
    Readme
    Loading...