Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
text/template: add support for variable overwrite (= not :=) #10608
Given this template snippet:
This is probably as designed, but it would be really nice if there was a way to get the changed
referenced this issue
Sep 14, 2015
added a commit
Sep 13, 2017
Had a quick look. As @bep said, this seems to be by design - templates have no
This issue isn't a proposal, and it was set to Unplanned which means "might be fixed at some point", so I'll assume that there is no reason to not add the feature. It also seems logical to have it, as the template package does speak of "variables" and the
I'll try to have a CL for 1.11 - reviewers welcome once it's up.
changed the title from
text/template: add support for nested variable assignment
Proposal: text/template: add support for nested variable assignment
Feb 16, 2018
In the CL I posted, Rob pointed out how this idea was never formally a proposal, so it was never reviewed nor accepted. In my earlier comment I explained why I assumed that this issue could be worked on, but I think I was a bit too optimistic in my thinking that it had already been reviewed.
For the time being, I've repurposed the issue as a proposal, and hopefully the proposal review team will get to it soon.