]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo: use slices.Index
authorTobias Klauser <tklauser@distanz.ch>
Wed, 4 Sep 2024 11:31:19 +0000 (13:31 +0200)
committerGopher Robot <gobot@golang.org>
Thu, 5 Sep 2024 18:54:24 +0000 (18:54 +0000)
commit634363e3cab412ae7c40b46fde9f29034251c35c
tree5bacc142488f87301b7539162561dafbdc07d1b7
parentc3f16307b3ff28578c915b8513f6369ad9f5e8f3
cmd/cgo: use slices.Index

Now that Go 1.22.6 is the minimum bootstrap toolchain (cf. CL 606156),
the slices package (introduced in Go 1.21) can be used in packages built
using the bootstrap toolchain.

For #64751

Change-Id: Ife0daa37c0982d9ec1afab07b9d40a1dfee9b7d4
Reviewed-on: https://go-review.googlesource.com/c/go/+/610575
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/cmd/cgo/util.go