mirror of
https://github.com/golang/go.git
synced 2025-05-20 06:43:26 +00:00
Fixes #66056 Change-Id: I1e24636e43e68cd57576c39b014e0826fb6c322c GitHub-Last-Rev: 319ad8ea7cd5326d23f9fddb9607924326aaf927 GitHub-Pull-Request: golang/go#66824 Reviewed-on: https://go-review.googlesource.com/c/go/+/578815 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: Cherry Mui <cherryyz@google.com>
282 B
282 B
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.