commit | 777d76c4f2392b782418a867172e7e951c0278f8 | [log] [tgz] |
---|---|---|
author | 1911860538 <alxps1911@gmail.com> | Wed May 14 15:25:40 2025 +0000 |
committer | Gopher Robot <gobot@golang.org> | Fri Aug 08 12:53:12 2025 -0700 |
tree | 3c66667331109593c91f53cc1f95864d554e839b | |
parent | 0201524c527f18e21240dce682dfe725b08cfb12 [diff] |
text/template: use sync.OnceValue for builtinFuncs Replaced sync.Once with sync.OnceValue to simplify code and reduce globals. Change-Id: I0586df379b855950eacc5b98baad68f6ba0ba129 GitHub-Last-Rev: 7540b1efba864901c1dc00833a72cb9ed306c52f GitHub-Pull-Request: golang/go#73689 Reviewed-on: https://go-review.googlesource.com/c/go/+/672235 Reviewed-by: Cherry Mui <cherryyz@google.com> Auto-Submit: Sean Liao <sean@liao.dev> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Sean Liao <sean@liao.dev> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
Gopher image by Renee French, licensed under Creative Commons 4.0 Attribution license.
Our canonical Git repository is located at https://go.googlesource.com/go. There is a mirror of the repository at https://github.com/golang/go.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.
Official binary distributions are available at https://go.dev/dl/.
After downloading a binary release, visit https://go.dev/doc/install for installation instructions.
If a binary distribution is not available for your combination of operating system and architecture, visit https://go.dev/doc/install/source for source installation instructions.
Go is the work of thousands of contributors. We appreciate your help!
To contribute, please read the contribution guidelines at https://go.dev/doc/contribute.
Note that the Go project uses the issue tracker for bug reports and proposals only. See https://go.dev/wiki/Questions for a list of places to ask questions about the Go language.