go-playground/validator
View on GitHub ↗ ★ 20,223 Go
:100:Go Struct and Field validation, including Cross Field, Cross Struct, Map, Slice and Array diving
5 mentions on Hacker News by 5 people: 1 story, 4 comments · first 2019-11-16 · latest 2025-05-09
20082026
-
I'm aware of this as well as go(lang)'s https://github.com/go-playground/validator , so you are right, I'm wondering about a more implicit validator like what Pydantic does when a value is assigned, versus an explicit call to validate().
comment by xarope · 2025-05-09 · in Matt Godbolt sold me on Rust by showing me C++ -
…me, but it doesn't operate on files, rather it validates the structs after unmarshaling. https://pkg.go.dev/github.com/go-playground/validator/v10
comment by ttymck · 2023-10-07 · in Go JSON/v2 Package -
…of structs at least, I've become a pretty big fan of the validator library from the go playground: github.com/go-playground/validator/v10 It uses struct tags to validate the struct and is quite extensive.…
comment by SEJeff · 2019-11-16 · in The Value in Go’s Simplicity