]> Cypherpunks repositories - gostls13.git/commit
cmd/go: make setState work with any State instance
authorIan Alexander <jitsu@google.com>
Thu, 16 Oct 2025 22:06:27 +0000 (18:06 -0400)
committerIan Alexander <jitsu@google.com>
Mon, 20 Oct 2025 19:52:33 +0000 (12:52 -0700)
commit386d81151d6f297cec757e2ad6d89f146759703a
treeff8077b55bbceee4460a75bc50c6ef40dccc269c
parenta420aa221ecae56d026e55dc64d647aec167f819
cmd/go: make setState work with any State instance

This commit updates the setState 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: I6d485156e7c4c83ff608f941b68e6d928418bd8f
Reviewed-on: https://go-review.googlesource.com/c/go/+/712700
Reviewed-by: Michael Matloob <matloob@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/go/internal/modload/init.go