gen

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListTemplates added in v0.0.12

func ListTemplates() ([]string, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL