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/CAOyqgcXv0podNt9Qyo4RpQxyR1OFx%3DWmPpnBPjJHSfSkAOtp9g%40mail.gmail.com.