EncodeJSONNumberKeyMarker adds a JSON Number key encoding marker to buf and returns the new buffer.
(buf []byte, dir Direction)
| 3548 | // EncodeJSONNumberKeyMarker adds a JSON Number key encoding marker |
| 3549 | // to buf and returns the new buffer. |
| 3550 | func EncodeJSONNumberKeyMarker(buf []byte, dir Direction) []byte { |
| 3551 | switch dir { |
| 3552 | case Ascending: |
| 3553 | return append(buf, jsonNumberKeyMarker) |
| 3554 | case Descending: |
| 3555 | return append(buf, jsonNumberKeyDescendingMarker) |
| 3556 | default: |
| 3557 | panic("invalid direction") |
| 3558 | } |
| 3559 | } |
| 3560 | |
| 3561 | // EncodeJSONFalseKeyMarker adds a JSON False key encoding marker |
| 3562 | // to buf and returns the new buffer. |
no outgoing calls
no test coverage detected
searching dependent graphs…