i am fairly new in golang. I am trying to read my helm chart text template, make some changes in some of the key-value pairs and then save it again as a diff template.
the problem is I cannot find a way to update values for key-value pairs in the template and also I cannot find a way to save the resulting template to a file.
thanks silbert, this is not it the problem with text template is the only way to write them out is with template.execute. i dont wanna do that as it will stop being a template after that function. anyways, i think I figured it out, so will close the thread.
solution: use the root.nodes and iterate through them to save the template in a file.
thanks for your help. have a nice day.