[go-nuts] Re: Assign a new value to an already initiated variable in template

2016-12-18 Thread ldeng via golang-nuts
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}}

[go-nuts] Re: Assign a new value to an already initiated variable in template

2016-12-18 Thread Aliaksandr Valialkin
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