[go-nuts] Re: For loop in go templating

2017-12-12 Thread Josh Cox
Yep, val see my stackoverflow question for my solution which uses sprig's until On Tuesday, December 12, 2017 at 3:52:13 AM UTC-6, Val wrote: > > Hi Josh > You can add a custom func to iterate over

[go-nuts] Re: For loop in go templating

2017-12-12 Thread Val
Hi Josh You can add a custom func to iterate over an int : Playground This is similar to the sprig "until" func . On Tuesday, December 12, 2017 at 5:43:06 AM UTC+1, Josh Cox wrote: > > Why is there not a

[go-nuts] Re: For loop in go templating

2017-12-11 Thread Miki Tebeka
You can probably organize the data a bit before sending it to the template and use "range". Something similar to https://play.golang.org/p/us5ABFoaeB On Tuesday, December 12, 2017 at 6:43:06 AM UTC+2, Josh Cox wrote: > > Why is there not a 'for' action in go templating >