Registry / utility / thedevsaddam-govalidator

thedevsaddam-govalidator

JSON →
library1.9.10gogounverified

A package for validating data in Go using rules and custom messages.

go get github.com/thedevsaddam/govalidator
INSTALL
IMPORT
SIG · THEDEVSADDAM-GOVAL
T
thedevsaddam-govalidator
utilitygov1.9.10
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.

govalidator
github.com/thedevsaddam/govalidator

Validates a map of data against required rules.

package main import ( "fmt" "github.com/thedevsaddam/govalidator" ) func main() { data := map[string]interface{}{"name": "John"} rules := govalidator.MapData{ "name": []string{"required"}, } opts := govalidator.Options{ Data: data, Rules: rules, } v := govalidator.New(opts) e := v.Validate() fmt.Println(e) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
thedevsaddam-govalidator — go get thedevsaddam-govalidator · libregistry