dontio

package
v0.0.0-...-9900226 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 License: AGPL-3.0-or-later Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddStdToContext

func AddStdToContext(ctx context.Context, s *Std) context.Context

Types

type BackgroundColor

type BackgroundColor color

func (BackgroundColor) Paint

func (b BackgroundColor) Paint(s string) string

type ForegroundColor

type ForegroundColor color

func (ForegroundColor) Paint

func (f ForegroundColor) Paint(s string) string

type Painter

type Painter interface {
	Paint(string) string
}

type Reset

type Reset struct{}

func (Reset) String

func (r Reset) String() string

type Std

type Std struct {
	Out io.Writer
	Err io.Writer
	In  io.Reader
}

func StdFromContext

func StdFromContext(ctx context.Context) (*Std, error)

func StdIo

func StdIo() Std

Jump to

Keyboard shortcuts

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