Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFuncs ¶
CreateFuncs - function mappings are created here
func LoadSharedLibrary ¶ added in v3.20.4
LoadSharedLibrary loads a shared library for Otto
Types ¶
type MetricsType ¶
type MetricsType struct { // times for rendering each template RenderDuration map[string]time.Duration // time it took to gather templates GatherDuration time.Duration // time it took to render all templates TotalRenderDuration time.Duration TemplatesGathered int TemplatesProcessed int Errors int }
MetricsType - Warning: experimental! This may change in breaking ways without warning. This is not subject to any semantic versioning guarantees!
var Metrics *MetricsType
Metrics tracks interesting basic metrics around gomplate executions. Warning: experimental! This may change in breaking ways without warning. This is not subject to any semantic versioning guarantees!
type Template ¶ added in v3.20.4
type Template struct { Template string `yaml:"template,omitempty" json:"template,omitempty"` // Go template JSONPath string `yaml:"jsonPath,omitempty" json:"jsonPath,omitempty"` Expression string `yaml:"expr,omitempty" json:"expr,omitempty"` // A cel-go expression Javascript string `yaml:"javascript,omitempty" json:"javascript,omitempty"` }
Directories ¶
Path | Synopsis |
---|---|
Package base64 contains Base64 encoding/decoding functions
|
Package base64 contains Base64 encoding/decoding functions |
Package coll contains functions to help manipulate and query collections of data, like slices/arrays and maps.
|
Package coll contains functions to help manipulate and query collections of data, like slices/arrays and maps. |
Package conv contains functions that help converting data between different types
|
Package conv contains functions that help converting data between different types |
Package data contains functions that parse and produce data structures in different formats.
|
Package data contains functions that parse and produce data structures in different formats. |
Package funcs is an internal package that provides gomplate namespaces and functions to be used in 'text/template' templates.
|
Package funcs is an internal package that provides gomplate namespaces and functions to be used in 'text/template' templates. |
internal
|
|
Package math contains set of basic math functions to be able to perform simple arithmetic operations
|
Package math contains set of basic math functions to be able to perform simple arithmetic operations |
Package random contains functions for generating random values
|
Package random contains functions for generating random values |
Package regexp contains functions for dealing with regular expressions
|
Package regexp contains functions for dealing with regular expressions |
Package duration contains routines to parse standard units of time.
|
Package duration contains routines to parse standard units of time. |
Package test contains functions to help validate assumptions and can cause template generation to fail in specific cases
|
Package test contains functions to help validate assumptions and can cause template generation to fail in specific cases |
Package time contains functions to help work with date and time
|
Package time contains functions to help work with date and time |
Package tmpl contains functions for defining or executing in-line templates.
|
Package tmpl contains functions for defining or executing in-line templates. |
Click to show internal directories.
Click to hide internal directories.