Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateConverters ¶ added in v1.0.0
func GenerateConverters(c *GenerateConfig) error
GenerateConverters generates converters.
Types ¶
type GenerateConfig ¶
type GenerateConfig struct { // PackagePatterns are golang package patterns to scan, required. PackagePatterns []string // WorkingDir is the working directory (usually the location of go.mod file), can be empty. WorkingDir string // Global are the global config commands that will be applied to all converters Global config.RawLines // BuildTags is a comma separated list passed to -tags when scanning for conversion interfaces. BuildTags string // OutputBuildConstraint will be added as go:build constraints to all files. OutputBuildConstraint string // EnumTransformers describes additional enum transformers usable in the enum:transform setting. EnumTransformers map[string]enum.Transformer }
GenerateConfig the config for generating a converter.
Click to show internal directories.
Click to hide internal directories.