Story

Show HN: govalid – Go validation without reflection (5-44x faster)

sivchari Tuesday, February 03, 2026

I got frustrated with runtime reflection in Go validators, so I built a codegen approach instead. govalid reads struct markers and generates plain Go validation code. No reflection, no allocations at runtime, 5-44x faster than go-playground/validator. Also supports CEL for complex rules. Feedback welcome :)

Summary
The article introduces govalid, a Go library for data validation, supporting various data types and providing a simple and extensible interface for defining validation rules. It highlights the library's key features, including support for struct field validation, custom validation functions, and error handling.
2 0
Summary
github.com
Visit article Read on Hacker News