(e *Encoder, v reflect.Value)
| 83 | } |
| 84 | |
| 85 | func encodeMapStringInterfaceValue(e *Encoder, v reflect.Value) error { |
| 86 | if v.IsNil() { |
| 87 | return e.EncodeNil() |
| 88 | } |
| 89 | m := v.Convert(mapStringInterfaceType).Interface().(map[string]interface{}) |
| 90 | if e.flags&sortMapKeysFlag != 0 { |
| 91 | return e.EncodeMapSorted(m) |
| 92 | } |
| 93 | return e.EncodeMap(m) |
| 94 | } |
| 95 | |
| 96 | func (e *Encoder) EncodeMap(m map[string]interface{}) error { |
| 97 | if m == nil { |
nothing calls this directly
no test coverage detected
searching dependent graphs…