Thanks to visit codestin.com Credit goes to github.com
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 fbfe209 commit 9848913Copy full SHA for 9848913
map.go
@@ -31,11 +31,13 @@ var _ json.Marshaler = Map(nil)
31
//
32
// 2. xerrors.Formatter is handled.
33
34
-// 3. error and fmt.Stringer are handled.
+// 3. Protobufs are handled with json.Marshal.
35
36
-// 4. slices and arrays are handled to go through the encode function for every value.
+// 4. error and fmt.Stringer are handled.
37
38
-// 5. json.Marshal is invoked as the default case.
+// 5. slices and arrays are handled to go through the encode function for every value.
39
+//
40
+// 6. json.Marshal is invoked as the default case.
41
func (m Map) MarshalJSON() ([]byte, error) {
42
b := &bytes.Buffer{}
43
b.WriteByte('{')
0 commit comments