Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListTemplates ¶ added in v0.0.12
Types ¶
type Feature ¶ added in v0.0.12
type Feature interface {
// GetName returns the name of the feature.
GetName() string
// GetPath returns the path to the feature's template directory.'
GetPath() string
// HasTemplateDir returns true if the feature has a template directory with files to process.
HasTemplateDir() bool
// UpdateTemplateOptions updates the TemplateOptions with the feature's template options.'
UpdateTemplateOptions(options *TemplateOptions) error
}
type TemplateOptions ¶
type TemplateOptions struct {
GolangVersion string
TemplateType string
OutputPathPrefix string
AppName string
ModuleName string
HomebrewRepo string
HomebrewEnabled bool
HomebrewUsername string
DocsEnabled bool
Features []Feature
DryRun bool
}
func (*TemplateOptions) GetFeatureTemplatePaths ¶ added in v0.0.12
func (options *TemplateOptions) GetFeatureTemplatePaths() ([]templatePath, error)
func (*TemplateOptions) RenderTemplate ¶ added in v0.0.12
func (options *TemplateOptions) RenderTemplate() error
Click to show internal directories.
Click to hide internal directories.