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
<https://pkg.go.dev/text/template#:~:text=%7B%7Brange%20pipeline%7D%7D%20T1%20%7B%7Bend%7D%7D%0A%09The%20value%20of%20the%20pipeline%20must%20be%20an%20array,%20slice,%20map,%20or%20channel.>
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.
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/7b920383-306e-4a73-b7be-c994470fc04bn%40googlegroups.com.