Documentation
¶
Index ¶
Constants ¶
View Source
const ExampleConfigurableGenerate = `` /* 196-byte string literal not displayed */
View Source
const ExampleGoGenerateComment = `` /* 142-byte string literal not displayed */
View Source
const ExampleValidationGenerate = `` /* 168-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoGenerateHelper ¶
type GoGenerateHelper struct {
ConfigPath string
OutputDir string
Verbose bool
DryRun bool
ValidateOnly bool
}
GoGenerateHelper provides utilities for working with go generate
func NewGoGenerateHelper ¶
func NewGoGenerateHelper() *GoGenerateHelper
NewGoGenerateHelper creates a new helper with default settings
func (*GoGenerateHelper) GenerateCommand ¶
func (h *GoGenerateHelper) GenerateCommand(packages ...string) string
GenerateCommand returns the encx-gen command string for go:generate
func (*GoGenerateHelper) ValidateCommand ¶
func (h *GoGenerateHelper) ValidateCommand(packages ...string) string
ValidateCommand returns the encx-gen validate command string
Click to show internal directories.
Click to hide internal directories.