-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed
Milestone
Description
Proposal Details
The Rangefunc change is adding support for range on custom functions.
The text/html template std library has a range operator which is documented as
{{range pipeline}} T1 {{end}}
The value of the pipeline must be an array, slice, map, or channel
The template library should support range over a function. The use case is wanting to return a Rangefunc on top of a sql rows iterator which can be passed to the template for text generation.
This was the discussion in the group https://groups.google.com/g/golang-nuts/c/_lykyoQHmGc
earthboundkid, jbduncan, mxey, DeedleFake, rkettelerij and 1 more