Documentation ¶
Index ¶
- func FuncsWithExternalURL(externalURL *url.URL) textTpl.FuncMap
- func FuncsWithQuery(query QueryFn) textTpl.FuncMap
- func Get() (*textTpl.Template, error)
- func GetWithFuncs(funcs textTpl.FuncMap) (*textTpl.Template, error)
- func Load(pathPatterns []string, overwrite bool) error
- func Reload()
- func UpdateWithFuncs(funcs textTpl.FuncMap)
- type QueryFn
- type Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FuncsWithExternalURL ¶
FuncsWithExternalURL returns a function map that depends on externalURL value
func FuncsWithQuery ¶
FuncsWithQuery returns a function map that depends on metric data
func GetWithFuncs ¶
GetWithFuncs returns a copy of current template with additional FuncMap provided with funcs argument
func Load ¶
Load func loads templates from multiple globs specified in pathPatterns and either sets them directly to current template if it's undefined or with overwrite=true or sets replacement templates and adds templates with new names to a current
func Reload ¶
func Reload()
Reload func replaces current template with a replacement template which was set by Load with override=false
func UpdateWithFuncs ¶
UpdateWithFuncs updates existing or sets a new function map for a template