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
- Use generated methods explicitly, for example User{}.Schema()
Click to show internal directories.
Click to hide internal directories.