Help us shape the future of Go! Take the 2026 Go Developer Survey

tint

package
v3.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package tint provides a colorized slog.Handler for development logging.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(w io.Writer, opts *Options) slog.Handler

NewHandler returns a new Handler that writes colored log records to w.

Types

type Options

type Options struct {
	Level      slog.Leveler
	TimeFormat string
	NoColor    bool
}

Options configures the Handler.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL