Documentation
¶
Overview ¶
Package generator executes code-generation templates against a parsed model to produce typed client libraries. It embeds all templates from the templates/ directory and writes generated Go source files to the specified output directory.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GenerateOption ¶ added in v1.2.0
type GenerateOption func(*generateConfig)
GenerateOption configures code generation.
func WithCLIDir ¶ added in v1.2.0
func WithCLIDir(dir string) GenerateOption
WithCLIDir sets the output directory for the generated CLI main.go. When empty (the default), the CLI is generated at {outputDir}/cmd/{packageName}/main.go.
Click to show internal directories.
Click to hide internal directories.