Documentation
¶
Index ¶
- func GetHead(path string) (string, error)
- func IsDir(name string) bool
- func PackageDir(dir string, ignore []string) ([]byte, error)
- func Render(name string, values map[string]string, funcs template.FuncMap) ([]byte, error)
- type Values
- func (v Values) Append(add map[string]string)
- func (v Values) Cascade(current, name, 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) 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 ¶
Values represents string mappings for go variables
func (Values) FromTemplate ¶
FromTemplate reads more key:value mappings from a templated file
Click to show internal directories.
Click to hide internal directories.