]> Cypherpunks repositories - gostls13.git/commit
cmd/go: code cleanups and go env output sorting
authorRuss Cox <rsc@golang.org>
Tue, 12 Nov 2024 23:08:49 +0000 (00:08 +0100)
committerGopher Robot <gobot@golang.org>
Thu, 14 Nov 2024 06:16:01 +0000 (06:16 +0000)
commit673a53917043afaf0fd89868251fc08dc98a89df
tree10d6366f89ed2c7fa4149b8c8b6859504a3b19e2
parent6c841e46408da2297989ab9d032cbe6318e8278e
cmd/go: code cleanups and go env output sorting

Sort the table of variables in the envcmd source code,
because all tables in all source code should be sorted
unless there's a reason they can't be.

Sort the go env output as well.

Sort the flag registrations, same reason.

Remove redundant range variable.

Change-Id: I5f1af3e22a09621706eb57c369bd2675b754b063
Reviewed-on: https://go-review.googlesource.com/c/go/+/627476
Reviewed-by: Sam Thanawalla <samthanawalla@google.com>
Auto-Submit: Russ Cox <rsc@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/go/internal/envcmd/env.go
src/cmd/go/internal/modload/load.go
src/cmd/go/internal/work/build.go