mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
5 lines
282 B
Markdown
5 lines
282 B
Markdown
|
|
The new methods [Value.Seq] and [Value.Seq2] return sequences that iterate over the value
|
||
|
|
as though it were used in a for/range loop.
|
||
|
|
The new methods [Type.CanSeq] and [Type.CanSeq2] report whether calling
|
||
|
|
[Value.Seq] and [Value.Seq2], respectively, will succeed without panicking.
|