Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Shell ¶
type Shell string
Shell represents the type of shell.
func (Shell) EvalCommand ¶
EvalCommand returns the script that evaluates the given command.
type Template ¶
type Template interface { // ParseFiles parses the named files and associates the resulting templates with t. ParseFiles(filenames ...string) error // ExecuteTemplate applies the template associated with t for the given shell // to the specified data object and writes the output to wr. ExecuteTemplate(wr io.Writer, shell string, data interface{}) error }
Template provides an abstraction for go templates.
func NewTemplate ¶
NewTemplate creates a new Template instance with the given filenames.
Click to show internal directories.
Click to hide internal directories.