(w enhancedWriter, v string, includeDoubleQuote bool)
| 420 | ) |
| 421 | |
| 422 | func writeEscapedString(w enhancedWriter, v string, includeDoubleQuote bool) (int, error) { |
| 423 | if includeDoubleQuote { |
| 424 | return quotedEscaper.WriteString(w, v) |
| 425 | } |
| 426 | return escaper.WriteString(w, v) |
| 427 | } |
| 428 | |
| 429 | // writeFloat is equivalent to fmt.Fprint with a float64 argument but hardcodes |
| 430 | // a few common cases for increased efficiency. For non-hardcoded cases, it uses |
no test coverage detected