gomplate replace multiple strings in yaml #1241
-
@hairyhenderson Thanks for answering #1239
When I use gomplate to replace data (multiple lines) with new data, it does not know about space indent of yaml, the result is like
I try to use |
Beta Was this translation helpful? Give feedback.
Answered by
hairyhenderson
Nov 5, 2021
Replies: 1 comment
-
You want the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
HenryXie1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You want the
strings.Indent
/indent
function: https://docs.gomplate.ca/functions/strings/#strings-indent