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
See code below for failing use case for go-json where it works in standard library.
I'm still trying to troubleshoot the root cause.
This issue came up when creating an interface for a go repository and one of their test cases were failing.
I've kept only the relevant code to recreate the issue.
The test also fails even if we have data no the string "{}"
Test with go v1.23, github.com/goccy/go-json v0.10.3
Standard Library ok
Goccy not ok, json: cannot unmarshal main.SomeInterface into Go value of type main.SomeInterface
The text was updated successfully, but these errors were encountered:
orangeswim
changed the title
Library fails to
Library fails to unmarshal: cannot unmarshal main.SomeInterface into Go value of type main.SomeInterface
Oct 14, 2024
See code below for failing use case for go-json where it works in standard library.
I'm still trying to troubleshoot the root cause.
This issue came up when creating an interface for a go repository and one of their test cases were failing.
I've kept only the relevant code to recreate the issue.
The test also fails even if we have data no the string "{}"
Test with go v1.23, github.com/goccy/go-json v0.10.3
Standard Library ok Goccy not ok, json: cannot unmarshal main.SomeInterface into Go value of type main.SomeInterface
The text was updated successfully, but these errors were encountered: