Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PrintOption ¶
type PrintOption func(p *printer)
PrintOption is a Print configuration option.
func WithGofmt ¶
func WithGofmt(enable bool) PrintOption
WithGofmt gofmts generated code, enabled by default.
Not recommended to disable it, only for debugging the output, because gofmt works as a validation step as well.
func WithPackageName ¶
func WithPackageName(name string) PrintOption
WithPackageName overrides the package name of generated code.
func WithPrefixes ¶
func WithPrefixes(prefixes []string) PrintOption
WithPrefixes prefixes to strip from interface names, be careful when using it may lead to compilation errors.
Click to show internal directories.
Click to hide internal directories.