We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 886e09e commit d7e0c3fCopy full SHA for d7e0c3f
types.go
@@ -43,7 +43,7 @@ func (id *ID) MarshalJSON() ([]byte, error) {
43
return json.Marshal(id.Number)
44
}
45
46
-// MarshalJSON implements json.UnmarshalJSON.
+// UnmarshalJSON implements json.UnmarshalJSON.
47
func (id *ID) UnmarshalJSON(data []byte) error {
48
*id = ID{}
49
if err := json.Unmarshal(data, &id.Number); err == nil {
0 commit comments