Documentation ¶
Index ¶
- func DefaultNameSystem() string
- func NameSystems() namer.NameSystems
- func NewGenDeepCopy(sanitizedName, targetPackage string, generateInitFunc, requireExplicitTag bool, ...) generator.Generator
- func Packages(context *generator.Context, arguments *args.GeneratorArgs) generator.Packages
- type CanInlineTypeFunc
- type Constraints
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultNameSystem ¶
func DefaultNameSystem() string
DefaultNameSystem returns the default name system for ordering the types to be processed by the generators in this package.
func NameSystems ¶
func NameSystems() namer.NameSystems
NameSystems returns the name system used by the generators in this package.
func NewGenDeepCopy ¶
func NewGenDeepCopy(sanitizedName, targetPackage string, generateInitFunc, requireExplicitTag bool, canInlineTypeFn CanInlineTypeFunc) generator.Generator
Types ¶
type CanInlineTypeFunc ¶
CanInlineTypeFunc should return true if the provided type can be converted to a function call
type Constraints ¶
type Constraints struct { // PackageConstraints is an optional set of package prefixes that constrain which types // will have inline deep copy methods generated for. Any type outside of these packages // (if specified) will not have a function generated and will result in a call to the // cloner.DeepCopy method. PackageConstraints []string }
Constraints is a set of optional limitations on what deep copy will generate.
Click to show internal directories.
Click to hide internal directories.