]> Cypherpunks repositories - gostls13.git/commit
encoding/json: add embedded structs to the UnmarshalTypeError's Field
authorj2gg0s <j2gg0s@gmail.com>
Tue, 27 Aug 2024 14:35:59 +0000 (14:35 +0000)
committerGopher Robot <gobot@golang.org>
Tue, 3 Sep 2024 15:49:47 +0000 (15:49 +0000)
commit0fe6347732bdb9918e3af4e0c4b52f7f0c162894
treef1e0b1a1f2a15e75ec0d4c84a795eaa98a443044
parent3da6c94d5ed62bf0c7fe682dcf46a1e53b72c2d9
encoding/json: add embedded structs to the UnmarshalTypeError's Field

Including embedded struct inforamtion in error message.

Fixes #68941

Change-Id: I6a6f7d506104839a9a7cf1a2c3003272f5534a79
GitHub-Last-Rev: 717f680acafd3f6509c0495f9092e028be502750
GitHub-Pull-Request: golang/go#68966
Reviewed-on: https://go-review.googlesource.com/c/go/+/606956
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
doc/next/6-stdlib/99-minor/encoding/json/68941.md [new file with mode: 0644]
src/encoding/json/decode.go
src/encoding/json/decode_test.go