Documentation ¶
Index ¶
- type Field
- func (f Field) FieldDefinition(schemaType *ast.Definition, schema *ast.Schema) *ast.FieldDefinition
- func (f Field) Join(str string) string
- func (f Field) JoinGo(str string) string
- func (f Field) LastIndex() int
- func (f Field) ToGo() string
- func (f Field) ToGoPrivate() string
- func (f Field) TypeReference(obj *codegen.Object, objects codegen.Objects) *codegen.Field
- type Set
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Field ¶
type Field []string
Field represents a single field in a FieldSet
func (Field) FieldDefinition ¶
func (f Field) FieldDefinition(schemaType *ast.Definition, schema *ast.Schema) *ast.FieldDefinition
FieldDefinition looks up a field in the type.
func (Field) Join ¶
Join concatenates the field parts with a string separator between. Useful in templates.
func (Field) JoinGo ¶
JoinGo concatenates the Go name of field parts with a string separator between. Useful in templates.
func (Field) ToGoPrivate ¶
ToGoPrivate converts a (possibly nested) field into a proper private Go name.
Click to show internal directories.
Click to hide internal directories.