Helper Functions
Magus extends the basic golang text/template engine by including slim-sprig
. This package provides a set of helper functions that can be used in the YAML manifest. Helper functions are used in the render of paths, templates, and conditions.
Additional functions
In addition to the functions provided by slim-sprig
, the following functions are available:
String functions
The following functions are available to manipulate strings:
snake
: converts a string to snake caseconstant
: converts a string to constant casepascal
: converts a string to pascal casecamel
: converts a string to camel casekebab
: converts a string to kebab case