Skip to content

New helpers added

Compare
Choose a tag to compare
@jucardi jucardi released this 04 Feb 23:38
· 8 commits to master since this release
  • indent: Indents a given string using the provided indentation. Eg: {{ indent "somestring with line breaks" " " }}
  • loadJson: Unmarshals a JSON string into a map[string]interface{}. Eg: {{ $obj := loadJson "{\"someKey\": 1234}" }}
  • mathAdd: Adds all the provided numbers together and returns the result
  • mathMult: Multiplies all the provided numbers together and returns the result