@@ -98,15 +98,17 @@ data, defined in detail in the corresponding sections that follow.
98
98
{{if pipeline}} T1 {{else}}{{if pipeline}} T0 {{end}}{{end}}
99
99
100
100
{{range pipeline}} T1 {{end}}
101
- The value of the pipeline must be an array, slice, map, or channel.
101
+ The value of the pipeline must be an array, slice, map, iter.Seq,
102
+ iter.Seq2 or channel.
102
103
If the value of the pipeline has length zero, nothing is output;
103
104
otherwise, dot is set to the successive elements of the array,
104
105
slice, or map and T1 is executed. If the value is a map and the
105
106
keys are of basic type with a defined order, the elements will be
106
107
visited in sorted key order.
107
108
108
109
{{range pipeline}} T1 {{else}} T0 {{end}}
109
- The value of the pipeline must be an array, slice, map, or channel.
110
+ The value of the pipeline must be an array, slice, map, iter.Seq,
111
+ iter.Seq2 or channel.
110
112
If the value of the pipeline has length zero, dot is unaffected and
111
113
T0 is executed; otherwise, dot is set to the successive elements
112
114
of the array, slice, or map and T1 is executed.
0 commit comments