4 ms·
validator has worked well for me, but it doesn't operate on files, rather it validates the structs after unmarshaling. https://pkg.go.dev/github.com/go-playgro
by ttymck 3y ago
validator has worked well for 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 https://pkg.go.dev/github.com/go-playground/validator/v10
- sureglymop 3y agoI am using validator now and it's okay. I did have to write some custom validators and it wasn't too well documented. Unfortunately it's a bit hard to generate the right error messages for the user to see exactly where the misconfiguration is.