schemagen

command
v0.7.13 Latest Latest
Warning

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

Go to latest
Published: May 3, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package main implements the schemagen code generation tool. This tool generates Schema methods for Go structs with jsonschema tags, enabling easy JSON Schema generation from Go struct definitions.

Usage:

schemagen [flags] [packages...]

Flags:

-suffix string     Output file suffix (default: "_schema.go")
-package string    Specify package name (default: auto-detect)
-verbose          Verbose output
-dry-run          Preview generated code without writing files
-force            Force regeneration of all files

Jump to

Keyboard shortcuts

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