(w enhancedWriter, v string, includeDoubleQuote bool)
| 464 | ) |
| 465 | |
| 466 | func writeEscapedString(w enhancedWriter, v string, includeDoubleQuote bool) (int, error) { |
| 467 | if includeDoubleQuote { |
| 468 | return quotedEscaper.WriteString(w, v) |
| 469 | } |
| 470 | return escaper.WriteString(w, v) |
| 471 | } |
| 472 | |
| 473 | // writeFloat is equivalent to fmt.Fprint with a float64 argument but hardcodes |
| 474 | // a few common cases for increased efficiency. For non-hardcoded cases, it uses |
no test coverage detected
searching dependent graphs…