Sure, created a proposal at https://github.com/golang/go/issues/66107
Ajay On Monday, March 4, 2024 at 2:11:59 PM UTC-8 Ian Lance Taylor wrote: > On Mon, Mar 4, 2024 at 11:47 AM Ajay Kidave <aja...@gmail.com> wrote: > > > > The https://go.dev/wiki/RangefuncExperiment change will be a great > addition to the language. I wanted to know whether the text/html template > std libraries will allow range over rangefunc. Currently, the doc for > text/template says > > > > {{range pipeline}} T1 {{end}} > > The value of the pipeline must be an array, slice, map, or channel > > > > It would be great if rangefunc is supported in templates. The specific > use case for me is passing a rangefunc created on a sql row iterator to a > template. > > Makes sense to me. Do you want to open a proposal at > https://go.dev/issue to add this to the template package? Thanks. > > 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/a02d1b91-d5e0-4577-946c-d1c413ce54adn%40googlegroups.com.