]> Cypherpunks repositories - gostls13.git/commit
net/mail: use sync.OnceValue to build dateLayouts
author1911860538 <alxps1911@gmail.com>
Sat, 8 Mar 2025 07:47:55 +0000 (07:47 +0000)
committerGopher Robot <gobot@golang.org>
Tue, 11 Mar 2025 20:47:59 +0000 (13:47 -0700)
commit39b783780a471961ae381a9fc37a5a1e468f5c21
treea436a8548b2b1f16d6101b1389ed1696ec55773a
parent31658ace9d277b7322413e9c3a21528bdc6db884
net/mail: use sync.OnceValue to build dateLayouts

Simplify buildDateLayouts with sync.OnceValue.

Change-Id: Ib48ab20ee00f5e44cc1b0f6e1afe3fcd1b7dc3c7
GitHub-Last-Rev: 0866d463de1ec618d0d645b98f5e94917b8c3bde
GitHub-Pull-Request: golang/go#72743
Reviewed-on: https://go-review.googlesource.com/c/go/+/656055
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/net/mail/message.go