Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AstAndTemplateData ¶
type AstAndTemplateData struct { Ast *ast.Definition TypeData *TypeData }
type FieldMapping ¶
type FieldMapping struct { FilterField string // Name of the field from the struct Field string // Name of the field from the schema TypeName string // Type name IsPointer bool // Set if the field will be a pointer or not IsSlice bool // Whether the field is a slice or not IsSliceBasicType bool IsNested bool // Whether the field is a nested struct or not IsMethod bool // Check if we need to call a method instead of a var IsUnion bool IsMinmaxeable bool }
FieldMapping defines field mapping struct to pass data to the template
func (*FieldMapping) CallWrapping ¶
func (fm *FieldMapping) CallWrapping(field string) string
func (*FieldMapping) EvalCallWrapping ¶
func (fm *FieldMapping) EvalCallWrapping(code string) string
func (*FieldMapping) EvalVarWrapping ¶
func (fm *FieldMapping) EvalVarWrapping(code string) string
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) InjectSourceEarly ¶
type ProcessingField ¶
type ProcessingField struct { Field *ast.FieldDefinition IsMinmaxeable bool }
type ProcessingObject ¶
type ProcessingObject struct { Fields []*ProcessingField Definition *ast.Definition }
type TemplateData ¶
type TemplateData struct {
TypeDatas []*TypeData
}
Click to show internal directories.
Click to hide internal directories.