]> Cypherpunks repositories - gostls13.git/commit
html: use sync.OnceValues instead of var once sync.Once
author1911860538 <alxps1911@gmail.com>
Mon, 21 Oct 2024 16:27:03 +0000 (16:27 +0000)
committerGopher Robot <gobot@golang.org>
Mon, 21 Oct 2024 18:46:08 +0000 (18:46 +0000)
commit205ab8a3fe8d7feaedea67d44f09d8ac6af59fd8
tree02c3472180c5bbbc134c4a2df88e06783a3587a7
parent2e9ed44d3943164636271f3242b21f0072b6caa7
html: use sync.OnceValues instead of var once sync.Once

Simplify populateMaps with sync.OnceValues.

Change-Id: Id52e6e1623c621b8d51e11fecbe3f1fab1e74eb4
GitHub-Last-Rev: 3cf736ae299f14ece401d218d68c3c8870e0cf5a
GitHub-Pull-Request: golang/go#69946
Reviewed-on: https://go-review.googlesource.com/c/go/+/621255
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>
Commit-Queue: Ian Lance Taylor <iant@google.com>
src/html/entity.go
src/html/entity_test.go
src/html/escape.go