EncodeJSONStringKeyMarker adds a JSON String key encoding marker to buf and returns the new buffer.
(buf []byte, dir Direction)
| 3535 | // EncodeJSONStringKeyMarker adds a JSON String key encoding marker |
| 3536 | // to buf and returns the new buffer. |
| 3537 | func EncodeJSONStringKeyMarker(buf []byte, dir Direction) []byte { |
| 3538 | switch dir { |
| 3539 | case Ascending: |
| 3540 | return append(buf, jsonStringKeyMarker) |
| 3541 | case Descending: |
| 3542 | return append(buf, jsonStringKeyDescendingMarker) |
| 3543 | default: |
| 3544 | panic("invalid direction") |
| 3545 | } |
| 3546 | } |
| 3547 | |
| 3548 | // EncodeJSONNumberKeyMarker adds a JSON Number key encoding marker |
| 3549 | // to buf and returns the new buffer. |
no outgoing calls
no test coverage detected
searching dependent graphs…