Hacker GitHub

← All repos

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

Mentions per year 5 mentions · busiest year 2023 (2)
20082026
  1. 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().
  2. …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
  3. ▲ 2
    Show HN: Go Validator Playground
    story by kretaceous · 2023-03-27 · 0 comments
  4. …while still retaining the benefits of a high-level GC'd language, then I'd try something like https://github.com/go-playground/validator for Go.
    comment by Seirdy · 2022-01-23 · in Pydantic
  5. …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