Registry / utility / dealancer-validate-v2

dealancer-validate-v2

JSON →
library2.1.0gogounverified

Validates Go structs recursively using struct tags with support for custom validators.

go get gopkg.in/dealancer/validate.v2
INSTALL
IMPORT
SIG · DEALANCER-VALIDATE
D
dealancer-validate-v2
utilitygov2.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

validate
gopkg.in/dealancer/validate.v2

Validate a struct using tag-based rules.

package main import ( "gopkg.in/dealancer/validate.v2" ) type User struct { Name string `validate:"gt=0"` Age int `validate:"gte=18"` } func main() { u := User{Name: "Alice", Age: 20} err := validate.Validate(u) if err != nil { panic(err) } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.1.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
dealancer-validate-v2 — go get dealancer-validate-v2 · libregistry