code_generation

command
v0.11.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package main demonstrates GoZod code generation for zero-overhead struct tag validation.

Usage:

  1. Add //go:generate gozodgen directive to your Go files
  2. Define structs with gozod struct tags
  3. Run: go generate ./...
  4. Generated *_gen.go files contain optimized Schema() methods
  5. FromStruct automatically detects and uses generated methods

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL