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 b12b672 commit 28f8f55Copy full SHA for 28f8f55
src/encoding/json/decode.go
@@ -72,7 +72,8 @@ import (
72
// use. If the map is nil, Unmarshal allocates a new map. Otherwise Unmarshal
73
// reuses the existing map, keeping existing entries. Unmarshal then stores
74
// key-value pairs from the JSON object into the map. The map's key type must
75
-// either be a string, an integer, or implement encoding.TextUnmarshaler.
+// either be any string type, an integer, implement json.Unmarshaler, or
76
+// implement encoding.TextUnmarshaler.
77
//
78
// If a JSON value is not appropriate for a given target type,
79
// or if a JSON number overflows the target type, Unmarshal
0 commit comments