Documentation
¶
Index ¶
- func Combine(one, two map[string]string)
- func GetHead(path string) (string, error)
- func IsDir(name string) bool
- func PackageDir(dir string, ignore []string) ([]byte, error)
- func Render(name string, data []byte, v Values, funcs template.FuncMap) ([]byte, error)
- func RenderFile(name string, v Values, funcs template.FuncMap) ([]byte, error)
- type Values
- func (v Values) Append(values Values)
- func (v Values) AppendStr(values map[string]string)
- func (v Values) Cascade(current, key, field string) string
- func (v Values) FromBytes(data []byte) error
- func (v Values) FromFile(fileName string) error
- func (v Values) FromTemplate(fileName string, funcs template.FuncMap) error
- func (v Values) MarshalJSON() ([]byte, error)
- func (v Values) ToEnv(prefix string)
- func (v Values) ToSlice() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PackageDir ¶ added in v0.3.4
PackageDir recursively adds files under the given directory to an in-memory tar file
Types ¶
type Values ¶
type Values map[interface{}]interface{}
Values represents mappings for go variables
func (Values) FromTemplate ¶
FromTemplate reads more key:value mappings from a templated file
func (Values) MarshalJSON ¶ added in v0.5.0
Click to show internal directories.
Click to hide internal directories.