diff options
| author | Joe Tsai <joetsai@digital-static.net> | 2025-07-24 15:07:39 -0700 |
|---|---|---|
| committer | Joseph Tsai <joetsai@digital-static.net> | 2025-08-13 15:47:52 -0700 |
| commit | 4b1800e47632d52006e3080580e4e60792389759 (patch) | |
| tree | f2b43968d3d1297c999966c5633cd5833a270504 /test/codegen | |
| parent | af8870708bbaf15956a27cbab15582b4c666855e (diff) | |
| download | go-4b1800e47632d52006e3080580e4e60792389759.tar.xz | |
encoding/json/v2: cleanup error constructors
There is no need to explicitly pass in the options
since this contained within the Encoder or Decoder struct
ever since https://github.com/go-json-experiment/json/pull/163.
Thus, remove it as an argument and fetch it from the coder.
This only modifies code that is compiled in under goexperiment.jsonv2.
Change-Id: I6c928b864bf7869889d7ee7d5c1d396fbe71296b
Reviewed-on: https://go-review.googlesource.com/c/go/+/695278
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Diffstat (limited to 'test/codegen')
0 files changed, 0 insertions, 0 deletions
