aboutsummaryrefslogtreecommitdiff
path: root/src/encoding
diff options
context:
space:
mode:
authorIan Alexander <jitsu@google.com>2025-10-02 22:52:08 -0400
committerIan Alexander <jitsu@google.com>2025-10-24 07:24:18 -0700
commit296ecc918d6688b5eeb9abe32d919b0aaa76d798 (patch)
tree8beb68b35817ad2e5544c7bdd3d318c36a713d26 /src/encoding
parentc445a61e5256914510f201d5bda5e526249217d6 (diff)
downloadgo-296ecc918d6688b5eeb9abe32d919b0aaa76d798.tar.xz
cmd/go: add modload.State parameter to AllowedFunc
This change makes the following functions methods on the State: * CheckAllowed * CheckExclusions * CheckRetractions Doing so allows us to reduce the use of the global state variable in downstream function calls. This commit is part of the overall effort to eliminate global modloader state. Change-Id: I97147311d9de16ecac8c122c2b6bdde94bad9d8f Reviewed-on: https://go-review.googlesource.com/c/go/+/711119 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>
Diffstat (limited to 'src/encoding')
0 files changed, 0 insertions, 0 deletions