Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BuildMutateHook ¶ added in v0.10.2
type BuildMutateHook = func(b *ModelBuild) *ModelBuild
type Field ¶
func GoTagFieldHook ¶ added in v0.15.0
func GoTagFieldHook(td *ast.Definition, fd *ast.FieldDefinition, f *Field) (*Field, error)
GoTagFieldHook applies the goTag directive to the generated Field f. When applying the Tag to the field, the field name is used when no value argument is present.
type FieldMutateHook ¶ added in v0.15.0
type FieldMutateHook = func(td *ast.Definition, fd *ast.FieldDefinition, f *Field) (*Field, error)
type ModelBuild ¶
type Plugin ¶
type Plugin struct { MutateHook BuildMutateHook FieldHook FieldMutateHook }
Click to show internal directories.
Click to hide internal directories.