encountered same problem, as it seems still an open issue, cannot change
value of an existing variable inside of loop/if in template
https://github.com/golang/go/issues/10608
...
{{$deprecated := false}} {{range $depre_audit := $depre_audits}}
{{if eq $audit_name $depre_audit}}
FYI, complex logic may be easily implemented with alternative template engines
like https://github.com/valyala/quicktemplate .
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send