]> Cypherpunks repositories - gostls13.git/commit
encoding/json/v2: remove issue reference in Duration formatting error
authorJoe Tsai <joetsai@digital-static.net>
Fri, 9 Jan 2026 01:27:59 +0000 (17:27 -0800)
committerGopher Robot <gobot@golang.org>
Thu, 22 Jan 2026 15:31:33 +0000 (07:31 -0800)
commit0152075d5aba0f198ac67fb426a0fc4c16e2b363
treef4f3462a1d9e68939217e4f6a6189a106fdc61b0
parenta53589662719d0186e3ce3b965c082b829d0ce4c
encoding/json/v2: remove issue reference in Duration formatting error

The json/v2 working group decided to commit to no default representation
for time.Duration for the foreseeable future.
Thus, we can remove the issue reference in the error message.

If JavaScript (TC39) formally adopts the Temporal.Duration type,
which uses ISO 8601 as the JSON representation for a duration,
we may consider changing the default.

Switching from no default to some default in the future
is generally a compatible change.

Updates #71631

Change-Id: I6f71a0fa97dcefba56aab0c0ddf445d9d38f6e58
Reviewed-on: https://go-review.googlesource.com/c/go/+/735080
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
Auto-Submit: Joseph Tsai <joetsai@digital-static.net>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/encoding/json/v2/arshal_time.go