appendString appends a string value to the buffer, applying quoting rules as necessary.
(val string, forceQuote bool)
| 86 | |
| 87 | // appendString appends a string value to the buffer, applying quoting rules as necessary. |
| 88 | func (s *formatterCommon) appendString(val string, forceQuote bool) { |
| 89 | if forceQuote { |
| 90 | s.buf.appendStringQuoted(val) |
| 91 | } else { |
| 92 | s.buf.appendString(val) |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | // appendTime appends a time value to the buffer, wrapping it in quotes, |
| 97 | // ([time.DateTime] always contains a space) |
no test coverage detected