process

package
v0.1.2-0...-b48ce14 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2017 License: EPL-1.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EnvVars = []string{
	"GOARCH",
	"GOOS",
	"GOFILE",
	"GOLINE",
	"GOPACKAGE",
	"DOLLAR",
}

Functions

func SnakeToPascal

func SnakeToPascal(sk string) string

func ToCamelCase

func ToCamelCase(s ...string) string

func ToPascal

func ToPascal(s string) string

func ToSymbol

func ToSymbol(sys string) string

Types

type Env

type Env struct {
	// contains filtered or unexported fields
}

func NewEnv

func NewEnv() *Env

func (*Env) Add

func (e *Env) Add(key string, val interface{}) *Env

func (*Env) AddGoEnvironment

func (env *Env) AddGoEnvironment() *Env

func (*Env) AddPairs

func (e *Env) AddPairs(pairs map[string]interface{}) *Env

func (*Env) AddSettings

func (env *Env) AddSettings(frontmatter string) (*Env, error)

func (*Env) BuildFuncMap

func (env *Env) BuildFuncMap() template.FuncMap

func (*Env) Codefile

func (env *Env) Codefile(defaultGoFile string) string

Codefile finds the .go file based on the GOFILE environment variable, else it uses the provided parameter: defaultGoFile.

func (*Env) CreateTemplate

func (env *Env) CreateTemplate(tpl string) (*template.Template, error)

func (*Env) Exists

func (env *Env) Exists(file string) bool

func (*Env) MaybeExit

func (p *Env) MaybeExit(conf *cli.CliConf, tpl *template.Template, content string)

func (*Env) RelativeFile

func (env *Env) RelativeFile(f string) string

func (*Env) Sep

func (e *Env) Sep() string

func (*Env) ShowDebug

func (p *Env) ShowDebug(conf *cli.CliConf, tpl *template.Template, content string)

func (*Env) ShowEnvironment

func (env *Env) ShowEnvironment(w io.Writer, errs ...error)

func (*Env) String

func (env *Env) String(key string) string

func (*Env) ToMap

func (e *Env) ToMap() map[string]interface{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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