appendStringify makes a json string and appends to buf.
(buf []byte, s string)
| 122 | |
| 123 | // appendStringify makes a json string and appends to buf. |
| 124 | func appendStringify(buf []byte, s string) []byte { |
| 125 | if mustMarshalString(s) { |
| 126 | b, _ := jsongo.Marshal(s) |
| 127 | return append(buf, b...) |
| 128 | } |
| 129 | buf = append(buf, '"') |
| 130 | buf = append(buf, s...) |
| 131 | buf = append(buf, '"') |
| 132 | return buf |
| 133 | } |
| 134 | |
| 135 | // appendBuild builds a json block from a json path. |
| 136 | func appendBuild(buf []byte, array bool, paths []pathResult, raw string, |
no test coverage detected
searching dependent graphs…