newFormatterStructured creates a new formatterStructured instance.
(groups []attrGroup, buf *buffer)
| 14 | |
| 15 | // newFormatterStructured creates a new formatterStructured instance. |
| 16 | func newFormatterStructured(groups []attrGroup, buf *buffer) *formatterStructured { |
| 17 | return &formatterStructured{ |
| 18 | formatterCommon: newFormatterCommon(groups, buf), |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | // format formats a log record. |
| 23 | func (s *formatterStructured) format(r slog.Record) { |
no test coverage detected