appendAttributes appends a list of attributes to the buffer.
(attrs []slog.Attr)
| 105 | |
| 106 | // appendAttributes appends a list of attributes to the buffer. |
| 107 | func (s *formatterJSON) appendAttributes(attrs []slog.Attr) { |
| 108 | for _, attr := range attrs { |
| 109 | s.appendAttribute(attr) |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | // appendAttribute appends a single attribute to the buffer. |
| 114 | func (s *formatterJSON) appendAttribute(attr slog.Attr) { |
no test coverage detected