Hello! I love Sprig and use it in pretty much every project I build that uses Go templates. I was surprised to see that YAML isn't supported. I use Helm often and have grown used to fromYaml and toYaml.
This PR adds new funcs to handle YAML: fromYaml, toYaml, mustFromYaml, and mustToYaml along with new tests.
Hello! I love Sprig and use it in pretty much every project I build that uses Go templates. I was surprised to see that YAML isn't supported. I use Helm often and have grown used to
fromYaml
andtoYaml
.This PR adds new funcs to handle YAML:
fromYaml
,toYaml
,mustFromYaml
, andmustToYaml
along with new tests.Closes #358