(buf []byte, val string)
| 60 | } |
| 61 | |
| 62 | func EncodeString(buf []byte, val string) []byte { |
| 63 | buf = append(buf, '"') |
| 64 | if len(val) == 0 { |
| 65 | buf = append(buf, '"') |
| 66 | return buf |
| 67 | } |
| 68 | NoQuote(&buf, val) |
| 69 | buf = append(buf, '"') |
| 70 | return buf |
| 71 | } |
| 72 | |
| 73 | func EncodeInt64(buf []byte, val int64) []byte { |
| 74 | i64toa(&buf, val) |
no test coverage detected
searching dependent graphs…