Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PrintOption ¶
type PrintOption func(ctx *context)
PrintOption is a Print+ configuration option.
func WithCamelize ¶
func WithCamelize(enable bool) PrintOption
func WithClientOnly ¶
func WithClientOnly(enable bool) PrintOption
WithClientOnly makes the printer generate only client-side code.
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.
func WithServerOnly ¶
func WithServerOnly(enable bool) PrintOption
WithServerOnly makes the printer generate only server-side code.
Click to show internal directories.
Click to hide internal directories.