Documentation
¶
Overview ¶
Package main demonstrates GoZod code generation for zero-overhead struct tag validation.
Usage:
- Add //go:generate gozodgen directive to your Go files
- Define structs with gozod struct tags
- Run: go generate ./...
- Generated *_gen.go files contain optimized Schema() methods
- FromStruct automatically detects and uses generated methods
Click to show internal directories.
Click to hide internal directories.