Documentation ¶
Index ¶
Constants ¶
View Source
const ( YAML = "yaml" JSON = "json" TOML = "toml" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConfigTemplate ¶
type ConfigTemplate struct { Name string `json:"name" yaml:"name" toml:"name"` Version string `json:"version" yaml:"version" toml:"version"` Author interface{} `json:"author" yaml:"author" toml:"author"` Description string `json:"description" yaml:"description" toml:"description"` Repository string `json:"repository" yaml:"repository" toml:"repository"` Env string `json:"env" yaml:"env" toml:"env"` Target []string `json:"target" yaml:"target" toml:"target"` Scripts map[string]string `json:"scripts" yaml:"scripts" toml:"scripts"` Packages map[string]string `json:"packages" yaml:"packages" toml:"packages"` }
func GetConfigStruct ¶
func GetConfigStruct(name, version, author, description, repository string) *ConfigTemplate
func Parse ¶
func Parse(_type, _path string) (*ConfigTemplate, error)
type Generator ¶
type Generator struct {
Config *ConfigTemplate
}
Click to show internal directories.
Click to hide internal directories.