hasJSONPrefix returns true if the provided buffer appears to start with a JSON open brace.
(buf []byte)
| 333 | // hasJSONPrefix returns true if the provided buffer appears to start with |
| 334 | // a JSON open brace. |
| 335 | func hasJSONPrefix(buf []byte) bool { |
| 336 | return hasPrefix(buf, jsonPrefix) |
| 337 | } |
| 338 | |
| 339 | // Return true if the first non-whitespace bytes in buf is |
| 340 | // prefix. |
no test coverage detected