Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BuildSteps = []builder.Builder{ &builder.BasicTargetPointerRule{}, &builder.Pointer{}, &builder.SourcePointer{}, &builder.TargetPointer{}, &builder.Basic{}, &builder.Struct{}, &builder.List{}, &builder.Map{}, }
BuildSteps that'll used for generation.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Name string
PackagePath string
ExtendMethods []string
WorkingDir string
WrapErrors bool
IgnoreUnexportedFields bool
MatchFieldsIgnoreCase bool
}
Config the generate config.
type ParseExtendOptions ¶
type ParseExtendOptions struct {
// PkgPath where the extend methods are located. If it is empty, the package is same as the
// ConverterInterface package and ConverterScope should be used for the lookup.
PkgPath string
// Scope of the ConverterInterface.
ConverterScope *types.Scope
// ConverterInterface to use - can be nil if its use is not allowed.
ConverterInterface types.Type
// NamePattern is the regexp pattern to search for within the PkgPath above or
// (if PkgPath is empty) within the Scope.
NamePattern *regexp.Regexp
}
ParseExtendOptions holds extend method options.
Click to show internal directories.
Click to hide internal directories.