]> Cypherpunks repositories - gostls13.git/commit
all: use slices.Sorted(maps.Keys(m))
authorTobias Klauser <tklauser@distanz.ch>
Wed, 2 Oct 2024 11:00:17 +0000 (13:00 +0200)
committerGopher Robot <gobot@golang.org>
Wed, 2 Oct 2024 14:22:59 +0000 (14:22 +0000)
commitbb5339196f86057ffa6042d31f52a44bf7f13752
tree20b17a10fceb171501e121b0ace7d95f532e69cd
parente86982c515ba4a494fb1f8e1367f4238a2b59c2e
all: use slices.Sorted(maps.Keys(m))

Use slices.Sorted(maps.Keys(m)) to get a sorted slices of the keys in
a map.

Do not change packages built during bootstrap, as the bootstrap compiler
(currently 1.22.6) does not have the required maps and slices functions.

Change-Id: Ie35565d241fa14aca56b730a69af010127b659ab
Reviewed-on: https://go-review.googlesource.com/c/go/+/617356
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
src/archive/tar/writer.go
src/database/sql/sql.go
src/internal/coverage/cformat/format.go
src/internal/coverage/encodecounter/encode.go
src/mime/mediatype.go
src/mime/multipart/writer.go
src/net/http/cgi/cgi_main.go
src/net/http/clientserver_test.go
src/net/url/url.go
src/testing/fstest/testfs.go