This commit is contained in:
Denis Bilenko 2025-01-24 17:26:34 +01:00
parent e0dda22fe9
commit fab3c805fb
1 changed files with 0 additions and 6 deletions

View File

@ -31,12 +31,6 @@ type friendlyHandler struct {
levelError string
}
// groupOrAttrs holds either a group name or a list of slog.Attrs.
type groupOrAttrs struct {
group string // group name if non-empty
attrs []slog.Attr // attrs if non-empty
}
func NewFriendlyHandler(out io.Writer, opts *Options) slog.Handler {
h := &friendlyHandler{out: out, mu: &sync.Mutex{}}
if opts != nil {