template

package
v0.0.0-...-217b446 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Template

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

Template is the parsed template structure.

func New

func New(name, in string) (*Template, error)

New parses input and creates a Template instance with given name.

func NewFromFile

func NewFromFile(name string, file string) (*Template, error)

NewFromFile parses the file and creates a Template instance with given name.

func (*Template) Apply

func (t *Template) Apply(rd io.Reader, wr io.Writer) error

Apply applies yaml input from Reader to the template and write its output to writer.

func (*Template) ApplyYaml

func (t *Template) ApplyYaml(in []byte, wr io.Writer) error

ApplyYaml applies yaml input to the template and write its output to writer.

Jump to

Keyboard shortcuts

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