Registry /
utility / thedevsaddam-govalidator
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.