Documentation
¶
Overview ¶
Package helpers contains helper functions for templates. All functions in this package are exposed to templates with the same name, but in all lowercase.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dict ¶
Dict creates a dictionary (map[string]any) from pairs of arguments. An uneven number of arguments will cause an error to be returned. The keys (i.e. uneven arguments) must be strings.
Example:
{{ dict "foo" "bar" "baz" 42 | ... }}
would create:
map[string]any { "foo": "bar", "baz": 42, }
func Env ¶
Env returns the value of environment variable referenced by name. If the name is not found in the environment, an error is returned.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.