On Mon, Dec 11, 2017 at 6:41 PM, Josh Cox <uberth...@gmail.com> wrote: > > Why is there not a 'for' action in go templating? > > I seem to get punted for asking such blasphemy! > > my stackoverflow question > > and my [github > issue](https://github.com/golang/go/issues/23088#issuecomment-350871434) > > But it's a serious question, the range action does not seem to fit what I > want here ( which is a simple loop over a count ).
In general the template support is not intended to provide support for general purpose programming, because the templates are necessarily embedded in a language that already does provide general purpose programming, namely Go itself. If you need something complicated, write Go code. Ian -- 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 an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.