Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func NewGenerator ¶
func NewGenerator(opts ...GeneratorOption) Generator
NewGenerator generates a Generator with options.
type GeneratorOption ¶
type GeneratorOption func(*Generator)
GeneratorOption is a function to specify option for NewGenerator.
func IsPtrRecv ¶
func IsPtrRecv(f bool) GeneratorOption
IsPtrRecv is an option to specify isPtrRecv.
func WithBuildTags ¶
func WithBuildTags(bts []string) GeneratorOption
WithBuildTags is an option to specify buildTags
func WithMaxDepth ¶
func WithMaxDepth(d int) GeneratorOption
WithMaxDepth is an option to specify maxDepth.
func WithMethodName ¶
func WithMethodName(n string) GeneratorOption
WithMethodName is an option to specify methodName.
func WithSkipLists ¶
func WithSkipLists(sl SkipLists) GeneratorOption
WithSkipLists is an option to specify skipLists
Click to show internal directories.
Click to hide internal directories.