Documentation
¶
Overview ¶
Package template provides an interface for text templates to be used during pipes
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fields ¶
type Fields map[string]interface{}
Fields is a heterogenous map type keyed by strings.
type Template ¶
type Template struct {
// contains filtered or unexported fields
}
Template is used to apply text templates to strings to dynamically configure API values. See the documentation of text/template to see the valid template format.
func (*Template) WithEnv ¶
WithEnv replaces the configured env of the template with the given key-value map.
func (*Template) WithFields ¶
WithFields merges the template's configured fields with the given Fields.
func (*Template) WithShellEnv ¶
WithShellEnv replaces the configured env of the template with the given sequence of shell-style, e.g. "KEY=VALUE", strings.
Click to show internal directories.
Click to hide internal directories.