EncodeMap is called when a map is encountered. Its argument is the number of fields in the map. The encoding algorithm will call the returned Encoder that many times to encode the successive values of the map. After each such call, MapKey will be called with the key of the element just encoded. For
(n int)
| 86 | // fields of the struct. For struct{A, B int}{1, 2}, if EncodeStruct returns |
| 87 | // false, the same sequence of calls as above will occur. |
| 88 | EncodeMap(n int) Encoder |
| 89 | MapKey(string) |
| 90 | |
| 91 | // If the encoder wants to encode a value in a special way it should do so here |
no outgoing calls
no test coverage detected