Documentation
¶
Index ¶
- func GetAllTypes(sourceTypes []*types.TypeName, maxDepth int64) ([]*types.TypeName, error)
- func GetStructDefinition(typeName *types.TypeName) (types.Type, error)
- func Parse(sourceTypePath string) (*types.TypeName, error)
- func ParseAll(sourceTypePaths ...string) ([]*types.TypeName, error)
- type FieldOptions
- type FieldOptionsGetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllTypes ¶
func GetStructDefinition ¶
GetStructDefinition retrieves the struct definition for a given type name. For that it needs to load the package.
Types ¶
type FieldOptions ¶
type FieldOptionsGetter ¶
type FieldOptionsGetter func(typeName *types.TypeName, field *types.Var, unparsedTag string) FieldOptions
func GetTagGetter ¶
func GetTagGetter(descriptorPath string, renameFieldsToSnakeCase bool) (FieldOptionsGetter, error)
Click to show internal directories.
Click to hide internal directories.