Documentation ¶
Overview ¶
Code generated by BuilderGen v0.2.0
Index ¶
- func GetUsage(formatPrinter PrinterFn)
- type BuilderGenConfig
- type Config
- type ConfigBuilder
- func (b *ConfigBuilder) Build() *Config
- func (b *ConfigBuilder) WithDestination(destination string) *ConfigBuilder
- func (b *ConfigBuilder) WithName(name string) *ConfigBuilder
- func (b *ConfigBuilder) WithPackage(package_ string) *ConfigBuilder
- func (b *ConfigBuilder) WithSource(source string) *ConfigBuilder
- func (b *ConfigBuilder) WithWithValidation(withValidation bool) *ConfigBuilder
- type PrinterFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BuilderGenConfig ¶ added in v0.2.0
type BuilderGenConfig struct {
Configs []*Config `yaml:"configs"`
}
type Config ¶
type Config struct { Source string `yaml:"source"` Destination string `yaml:"destination"` Package string `yaml:"package"` Name string `yaml:"name"` WithValidation bool `yaml:"with-validation"` }
func NewConfig ¶
NewConfig creates a new config with the given arguments. It also initializes the default values config arguments.
func ParseConfigFile ¶ added in v0.2.0
func (*Config) FillDefaults ¶ added in v0.2.0
type ConfigBuilder ¶
type ConfigBuilder struct { Source string `yaml:"source"` Destination string `yaml:"destination"` Package string `yaml:"package"` Name string `yaml:"name"` WithValidation bool `yaml:"with-validation"` }
func NewConfigBuilder ¶
func NewConfigBuilder(b *Config) *ConfigBuilder
func (*ConfigBuilder) Build ¶
func (b *ConfigBuilder) Build() *Config
func (*ConfigBuilder) WithDestination ¶
func (b *ConfigBuilder) WithDestination(destination string) *ConfigBuilder
func (*ConfigBuilder) WithName ¶
func (b *ConfigBuilder) WithName(name string) *ConfigBuilder
func (*ConfigBuilder) WithPackage ¶
func (b *ConfigBuilder) WithPackage(package_ string) *ConfigBuilder
func (*ConfigBuilder) WithSource ¶
func (b *ConfigBuilder) WithSource(source string) *ConfigBuilder
func (*ConfigBuilder) WithWithValidation ¶ added in v0.1.0
func (b *ConfigBuilder) WithWithValidation(withValidation bool) *ConfigBuilder
Click to show internal directories.
Click to hide internal directories.