go/src/time
Damien Neil 0e17905793 encoding/json: add json/v2 with GOEXPERIMENT=jsonv2 guard
This imports the proposed new v2 JSON API implemented in
github.com/go-json-experiment/json as of commit
d3c622f1b874954c355e60c8e6b6baa5f60d2fed.

When GOEXPERIMENT=jsonv2 is set, the encoding/json/v2 and
encoding/jsontext packages are visible, the encoding/json
package is implemented in terms of encoding/json/v2, and
the encoding/json package include various additional APIs.
(See #71497 for details.)

When GOEXPERIMENT=jsonv2 is not set, the new API is not
present and the encoding/json package is unchanged.

The experimental API is not bound by the Go compatibility
promise and is expected to evolve as updates are made to
the json/v2 proposal.

The contents of encoding/json/internal/jsontest/testdata
are compressed with zstd v1.5.7 with the -19 option.

Fixes #71845
For #71497

Change-Id: Ib8c94e5f0586b6aaa22833190b41cf6ef59f4f01
Reviewed-on: https://go-review.googlesource.com/c/go/+/665796
Auto-Submit: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Joseph Tsai <joetsai@digital-static.net>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
2025-04-18 08:24:07 -07:00
..
testdata
tzdata
abs_test.go time: optimize time <-> date conversions 2024-07-31 21:29:46 +00:00
embed.go
example_test.go time: add examples for AppendBinary and AppendText 2025-04-08 13:59:46 -07:00
export_android_test.go
export_test.go
export_windows_test.go
format.go time: optimize quote using byte(c) for ASCII 2025-03-14 15:08:20 -07:00
format_rfc3339.go time: optimize time <-> date conversions 2024-07-31 21:29:46 +00:00
format_test.go time: fix time zone parsing when format includes time zone seconds 2024-07-02 20:01:50 +00:00
genzabbrs.go all: change from sort functions to slices functions where feasible 2024-05-23 01:00:11 +00:00
internal_test.go time: time/internal_test.go remove redundant type conversion 2024-06-03 14:56:37 +00:00
linkname_test.go time: optimize time <-> date conversions 2024-07-31 21:29:46 +00:00
mono_test.go
sleep.go timer: fix Stop link in Timer.Reset doc comment 2024-10-14 21:03:43 +00:00
sleep_test.go all: use built-in min, max functions 2025-04-11 16:00:30 -07:00
sys_plan9.go
sys_unix.go
sys_windows.go
tick.go
tick_test.go time: add examples for Since, Until, Abs and fix some comments 2024-11-05 17:09:35 +00:00
time.go runtime, time: don't use monotonic clock inside synctest bubbles 2025-03-18 10:50:51 -07:00
time_test.go encoding/json: add json/v2 with GOEXPERIMENT=jsonv2 guard 2025-04-18 08:24:07 -07:00
tzdata_test.go
zoneinfo.go time: remove redundant int conversion in tzruleTime 2025-04-11 07:30:57 -07:00
zoneinfo_abbrs_windows.go time: regenerate zoneinfo_abbrs_windows.go 2024-11-12 18:43:12 +00:00
zoneinfo_android.go
zoneinfo_android_test.go
zoneinfo_goroot.go
zoneinfo_ios.go
zoneinfo_js.go
zoneinfo_plan9.go internal/synctest: new package for testing concurrent code 2024-11-19 19:40:40 +00:00
zoneinfo_read.go internal/synctest: new package for testing concurrent code 2024-11-19 19:40:40 +00:00
zoneinfo_test.go
zoneinfo_unix.go
zoneinfo_unix_test.go
zoneinfo_wasip1.go
zoneinfo_windows.go all: remove unnecessary symbols and add missing symbols 2024-09-09 16:44:45 +00:00
zoneinfo_windows_test.go