encodeInt64 encodes an int to JSON
(n int64)
| 36 | |
| 37 | // encodeInt64 encodes an int to JSON |
| 38 | func (enc *Encoder) encodeInt64(n int64) ([]byte, error) { |
| 39 | enc.buf = strconv.AppendInt(enc.buf, n, 10) |
| 40 | return enc.buf, nil |
| 41 | } |
| 42 | |
| 43 | // AddInt adds an int to be encoded, must be used inside a slice or array encoding (does not encode a key) |
| 44 | func (enc *Encoder) AddInt(v int) { |
no outgoing calls
no test coverage detected