]> Cypherpunks repositories - gostls13.git/commit
cmd/go: make Reset work with any State instance
authorIan Alexander <jitsu@google.com>
Thu, 16 Oct 2025 22:09:57 +0000 (18:09 -0400)
committerIan Alexander <jitsu@google.com>
Mon, 20 Oct 2025 19:52:55 +0000 (12:52 -0700)
commit0d3044f9655c3a3f94565b2918515d93f6fe2485
tree476e8be18a31e2751e39edbea5fff2f85c835b24
parent386d81151d6f297cec757e2ad6d89f146759703a
cmd/go: make Reset work with any State instance

This commit updates the Reset function to work with any state
object in preparation for converting it to a method.

This commit is part of the overall effort to eliminate global
modloader state.

Change-Id: I6103842ea0a0528698217930afc0e34a2aa21eea
Reviewed-on: https://go-review.googlesource.com/c/go/+/712701
Reviewed-by: Michael Matloob <matloob@golang.org>
Reviewed-by: Michael Matloob <matloob@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/go/internal/modload/init.go
src/cmd/go/internal/toolchain/select.go