An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 6.0% on proxy.golang.org

proxy.golang.org : github.com/mikemackintosh/tint

Package tint implements a zero-dependency slog.Handler that writes tinted (colorized) logs. The output format is inspired by the zerolog.ConsoleWriter and slog.TextHandler. The output format can be customized using Options, which is a drop-in replacement for slog.HandlerOptions. Options.ReplaceAttr can be used to alter or drop attributes. If set, it is called on each non-group attribute before it is logged. See slog.HandlerOptions for details. Create a new logger that doesn't write the time: Create a new logger that writes all errors in red: Colors are enabled by default and can be disabled using the Options.NoColor attribute. To automatically enable colors based on the terminal capabilities, use e.g. the go-isatty package. Color support on Windows can be added by using e.g. the go-colorable package.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/mikemackintosh/tint
License: MIT
Latest release: 3 months ago
Namespace: github.com/mikemackintosh
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 3 months ago