appendKey appends an attribute key to the buffer.
(key string)
| 102 | |
| 103 | // appendKey appends an attribute key to the buffer. |
| 104 | func (s *formatterStructured) appendKey(key string) { |
| 105 | if len(*s.buf) > 0 { |
| 106 | s.buf.append(' ') |
| 107 | } |
| 108 | |
| 109 | s.buf.appendString(s.prefix.String() + key) |
| 110 | s.buf.append('=') |
| 111 | } |
| 112 | |
| 113 | // appendValue appends an attribute value to the buffer, applying quoting. |
| 114 | func (s *formatterStructured) appendValue(val slog.Value) { |
no test coverage detected