appendKey appends an attribute key to the buffer.
(key string)
| 156 | |
| 157 | // appendKey appends an attribute key to the buffer. |
| 158 | func (s *formatterPretty) appendKey(key string) { |
| 159 | s.buf.append(' ') |
| 160 | s.buf.append(s.colorThin...) |
| 161 | s.buf.appendString(key) |
| 162 | s.buf.append(prettyColorReset...) |
| 163 | s.buf.append('=') |
| 164 | } |
| 165 | |
| 166 | // appendValue appends an attribute value to the buffer, applying quoting rules as necessary. |
| 167 | func (s *formatterPretty) appendValue(val slog.Value) { |
no test coverage detected