]> Cypherpunks repositories - gostls13.git/commit
os: use sync.OnceValue
authorapocelipes <seve3r@outlook.com>
Mon, 21 Oct 2024 15:28:25 +0000 (15:28 +0000)
committerGopher Robot <gobot@golang.org>
Wed, 23 Oct 2024 15:16:26 +0000 (15:16 +0000)
commit263b5ecba78f5fa503d1e47ad469d12b45e0a149
tree9cc9631841f278f1bf77000bdbc3760f28ec530a
parent32f4864216366f355a589c99a8d789f3341bc85c
os: use sync.OnceValue

Simplify the code and reduce global variables.

Change-Id: Id322836e8b6b6c4434136b95700ed4070ba52300
GitHub-Last-Rev: 7c9d409855c682b6de1f338f69d9193a7887f9f0
GitHub-Pull-Request: golang/go#69962
Reviewed-on: https://go-review.googlesource.com/c/go/+/621456
Reviewed-by: Michael Pratt <mpratt@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
src/os/file_windows.go