(key string)
| 442 | } |
| 443 | |
| 444 | func (enc *jsonEncoder) addKey(key string) { |
| 445 | enc.addElementSeparator() |
| 446 | enc.buf.AppendByte('"') |
| 447 | enc.safeAddString(key) |
| 448 | enc.buf.AppendByte('"') |
| 449 | enc.buf.AppendByte(':') |
| 450 | if enc.spaced { |
| 451 | enc.buf.AppendByte(' ') |
| 452 | } |
| 453 | } |
| 454 | |
| 455 | func (enc *jsonEncoder) addElementSeparator() { |
| 456 | last := enc.buf.Len() - 1 |
no test coverage detected