Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // FeatureAliases provides common name associates to their appropriate feature name. FeatureAliases = map[string][]string{ "init": {"make", "git", "legal", "authors"}, "bin": {"gobinary", "go", "version"}, } // FilesByFeature contains a map of features to the associated files they render. FilesByFeature = map[string][]string{ "Authors": { "AUTHORS.tmpl", }, "Docker": { "cmd/{{ .Name }}/docker-compose.yaml.tmpl", "cmd/{{ .Name }}/Dockerfile.tmpl", }, "GoBinary": { "internal/commands/version.go.tmpl", "cmd/{{ .Name }}/main.go.tmpl", }, "GoReleaser": { "scripts/dist-go.sh.tmpl", ".goreleaser.yaml.tmpl", }, "Go": { "go.mod.tmpl", }, "Version": { "package.json.tmpl", }, "Legal": { "legal/header.txt.tmpl", "LICENSE.tmpl", }, "Git": { ".gitignore.tmpl", ".git/HEAD", ".git/config", }, "Make": { "Makefile.tmpl", }, } )
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data struct { Name string `json:"name"` License string `json:"license"` Features []string `json:"features"` }
Data defines the information needed to render the template.
Click to show internal directories.
Click to hide internal directories.