This release adds a much-requested feature: function tint.Attr(color uint8, attr slog.Attr)
writes colored attributes. Like tint.Err
, which writes red-colored errors, tint.Attr
can be used with other slog handlers (e.g. slog.JSONHandler) and does not emit raw ANSI codes.
What's Changed
- Add colored attributes:
tint.Attr(color, attr)
by @lmittmann in #93 - workflows: Simplify Go checks by @lmittmann in #92
Full Changelog: v1.0.7...v1.1.0