Documentation
¶
Index ¶
- func Funcs(funcs template.FuncMap)
- type Template
- func (t *Template) Apply(rd io.Reader, wr io.Writer, overrides ...map[string]interface{}) error
- func (t *Template) ApplyYaml(in []byte, wr io.Writer, overrides ...map[string]interface{}) error
- func (t *Template) Funcs(funcs template.FuncMap) *Template
- func (t *Template) Parse(in string) (*Template, error)
- func (t *Template) ParseFile(file string) (*Template, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Template ¶
type Template struct {
// contains filtered or unexported fields
}
Template is the parsed template structure.
func (*Template) Apply ¶
Apply applies yaml input from Reader to the template and write its output to writer.
func (*Template) ApplyYaml ¶
ApplyYaml applies yaml input to the template and write its output to writer.
Click to show internal directories.
Click to hide internal directories.