EncodeJSONKeyTerminator adds a JSON Key terminator to buf and returns the buffer.
(buf []byte, dir Direction)
| 3606 | // EncodeJSONKeyTerminator adds a JSON Key terminator |
| 3607 | // to buf and returns the buffer. |
| 3608 | func EncodeJSONKeyTerminator(buf []byte, dir Direction) []byte { |
| 3609 | switch dir { |
| 3610 | case Ascending: |
| 3611 | return append(buf, jsonKeyTerminator) |
| 3612 | case Descending: |
| 3613 | return append(buf, jsonKeyDescendingTerminator) |
| 3614 | default: |
| 3615 | panic("invalid direction") |
| 3616 | } |
| 3617 | } |
| 3618 | |
| 3619 | // EncodeJSONObjectKeyMarker adds a JSON Object key encoding marker |
| 3620 | // to buf and returns the new buffer. |
no outgoing calls
no test coverage detected
searching dependent graphs…