Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add YAML funcs: fromYaml, toYaml, mustFromYaml, mustToYaml #366

Closed
wants to merge 1 commit into from

Conversation

gabe565
Copy link

@gabe565 gabe565 commented Apr 17, 2023

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.

Closes #358

@gabe565
Copy link
Author

gabe565 commented Apr 17, 2023

Whoops, I missed #360 before now, so I'll close this!

@gabe565 gabe565 closed this Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: add toYaml/fromYaml functions
1 participant