Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct { // Target is the file or directory to parse, or current dir if empty. Target string // Tags contains schema names like json or yaml. Tags []string // Template is used to generate the contents of the struct tag field if Tags is empty. Template *template.Template // Mapping contains field name conversions. If a field isn't in the map, lowercase of field name is used. Mapping map[string]string // Types to generate tags for, if empty, all structs will have tags generated. Types []string // DryRun indicates whether we should simply write to StdOut rather than writing to the files. DryRun bool AppendMod bool }
Options contains the data needed to generate tags for a target (file or package).
Click to show internal directories.
Click to hide internal directories.