Documentation
¶
Index ¶
Constants ¶
View Source
const NoValue = "<no value>"
NoValue is used when a template variable is not found. This string is not exported as a const from the text/template.
Variables ¶
This section is empty.
Functions ¶
func GoTemplate ¶
func GoTemplate(in string, payload types.MessagePayload, extraFuncs template.FuncMap) (string, error)
GoTemplate attempts to substitute the given payload into the given template using Go's templating syntax. TODO: memoize templates for memory efficiency?
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.