package
0.1.7
Repository: https://github.com/futuretea/render.git
Documentation: pkg.go.dev

# Packages

Package parameters defines data structure for the data-driven renderer Parameters is a tree structure and can be created from a YAML files or 'key=value' pairs.

# Functions

ExtraFunctions provides additional template functions to the standard (text/template) ones.
FromJSON is a template function, that unmarshalls JSON string to a map.
FromYAML is a template function, that unmarshalls YAML string to a map.
Gzip compresses the input using gzip algorithm.
JSONPath is a template function, that evaluates JSONPath expression against a data structure and returns a list of results.
MergeFunctions merges two template.FuncMap instances, overrides if necessary.
N returns a slice of integers form the given start to end (inclusive).
New creates a new renderer with the specified parameters and zero or more options.
ToYAML is a template function, it turns a marshallable structure into a YAML fragment.
Ungzip un-compresses the input using gzip algorithm.
WithCryptFunctions mutates Renderer configuration by merging the Crypt template functions.
WithDelim mutates Renderer configuration by replacing the left and right delimiters.
WithExtraFunctions mutates Renderer configuration by merging the custom template functions.
WithFunctions mutates Renderer configuration by replacing the template functions.
WithMoreFunctions mutates Renderer configuration by merging the given template functions,.
WithMoreParameters mutates Renderer configuration by merging the given template parameters.
WithOptions mutates Renderer configuration by replacing the template functions.
WithParameters mutates Renderer configuration by replacing all template parameters.
WithSprigFunctions mutates Renderer configuration by merging the Sprig template functions.

# Interfaces

Renderer allows for parameterised text template rendering.