# Functions
EscapeSpecialCharacters takes a map of config properties (some level of map (of maps...) of string) and escapes any newline characters in it Note: this is in use in both v1 config templating.
EscapeSpecialCharactersInValue takes a value and tries to escape any strings in it - it will walk recursively in case of maps/maps-of-maps of string and escape any special characters using a StringEscapeFunction.
NewTemplate creates a new template for the given file.
NewTemplateFromString creates a new template for the given string content.
UnmarshalYaml takes the contents of a yaml file and converts it to a map[string]map[string]string.
UnmarshalYamlWithoutTemplating takes the contents of a yaml file and converts it to a map[string]map[string]string.
# Variables
FullStringEscapeFunction fully escapes any special characters in the input string, ensure it is valid for use in JSON.
SimpleStringEscapeFunction only escapes newline characters in an input string.
# Interfaces
Template wraps the underlying templating logic and provides a means of setting config values just on one place.
# Type aliases
No description provided by the author
UnmarshalYamlFunc is a function that will Umarshal a yaml string of a config or environment definition into a map.