hints

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Hints are used while the processing of events and can adjust the behaviour how stuff is processed/handled. Hints are always optional.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColorMode added in v0.20.0

type ColorMode interface {
	Hints

	// ColorMode returns the desired color.Mode.
	ColorMode() color.Mode
}

ColorMode are Hints that provide the information how something should be colorized.

type ColorsSupport

type ColorsSupport interface {
	Hints

	// IsColorSupported returns if color is supported and how.
	IsColorSupported() color.Supported
}

ColorsSupport are Hints that provide the information if color is supported.

type Hints

type Hints interface{}

Hints are used while the processing of events and can adjust the behaviour how stuff is processed/handled. Hints are always optional.

type LevelColorizer added in v0.20.0

type LevelColorizer interface {
	Hints

	// ColorMode returns the desired level.Colorizer.
	LevelColorizer() level.Colorizer
}

LevelColorizer are Hints that provides an assigned level.Colorizer.

Jump to

Keyboard shortcuts

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