Documentation
¶
Overview ¶
Package template facilitates processing of JSON strings using Go templates. Provides additional functions not available using basic Go templates, such as coloring, and table rendering.
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 representation of a template.
func (*Template) Execute ¶
Execute applies the parsed template to the input and writes result to the writer the template was initialized with.
func (*Template) ExecuteData ¶
func (*Template) Flush ¶
Flush writes any remaining data to the writer. This is mostly useful when a templates uses the tablerow function but does not include the tablerender function at the end. If a template did not use the table functionality this is a noop.
Click to show internal directories.
Click to hide internal directories.