Documentation
¶
Index ¶
Constants ¶
View Source
const ( // JSONString const to save on duplicate variable names JSONString = "json" // IDString const to save on duplicates for Go templates IDString = "{{.ID}}" )
Variables ¶
This section is empty.
Functions ¶
func NewParse ¶
NewParse creates a new tagged template with the basic functions and parses the given format.
Types ¶
type JSONStructArray ¶
type JSONStructArray struct {
Output []interface{}
}
JSONStructArray for JSON output
type StdoutTemplate ¶
StdoutTemplate for Go template output
type StdoutTemplateArray ¶
StdoutTemplateArray for Go template output
func (StdoutTemplateArray) Out ¶
func (t StdoutTemplateArray) Out() error
Out method for Go templates
Source Files
¶
- formats.go
- templates.go
Click to show internal directories.
Click to hide internal directories.