maybe you want the `range $index, $element := pipeline` form mentioned in 
https://pkg.go.dev/text/template#hdr-Variables ? 

https://go.dev/play/p/AgfUpwuhqFE

On Sunday, August 9, 2026 at 8:57:54 PM UTC-3 Robert Johnstone wrote:

> I'm seeing some unexpected behaviour when running templates using 
> text/template. Specifically, when ranging over iter.Seq2 the cursor follows 
> the first parameter, not the second as for example when ranging over a 
> slice. Is this the expected behaviour?
>
> https://go.dev/play/p/5JK7kIhXGxs
>

-- 
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 visit 
https://groups.google.com/d/msgid/golang-nuts/a0fdb328-7e59-40ce-98ce-ace78ba2f503n%40googlegroups.com.

Reply via email to