Documentation
¶
Index ¶
- Variables
- func SnakeToPascal(sk string) string
- func ToCamelCase(s ...string) string
- func ToPascal(s string) string
- func ToSymbol(sys string) string
- type Env
- func (e *Env) Add(key string, val interface{}) *Env
- func (env *Env) AddGoEnvironment() *Env
- func (e *Env) AddPairs(pairs map[string]interface{}) *Env
- func (env *Env) AddSettings(frontmatter string) (*Env, error)
- func (env *Env) BuildFuncMap() template.FuncMap
- func (env *Env) Codefile(defaultGoFile string) string
- func (env *Env) CreateTemplate(tpl string) (*template.Template, error)
- func (env *Env) Exists(file string) bool
- func (p *Env) MaybeExit(conf *cli.CliConf, tpl *template.Template, content string)
- func (env *Env) RelativeFile(f string) string
- func (e *Env) Sep() string
- func (p *Env) ShowDebug(conf *cli.CliConf, tpl *template.Template, content string)
- func (env *Env) ShowEnvironment(w io.Writer, errs ...error)
- func (env *Env) String(key string) string
- func (e *Env) ToMap() map[string]interface{}
Constants ¶
This section is empty.
Variables ¶
View Source
var EnvVars = []string{
"GOARCH",
"GOOS",
"GOFILE",
"GOLINE",
"GOPACKAGE",
"DOLLAR",
}
Functions ¶
func SnakeToPascal ¶
func ToCamelCase ¶
Types ¶
type Env ¶
type Env struct {
// contains filtered or unexported fields
}
func (*Env) AddGoEnvironment ¶
func (*Env) BuildFuncMap ¶
func (*Env) Codefile ¶
Codefile finds the .go file based on the GOFILE environment variable, else it uses the provided parameter: defaultGoFile.
func (*Env) RelativeFile ¶
Click to show internal directories.
Click to hide internal directories.