color

package
Version: v0.0.0-...-51f9457 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StripWriter

type StripWriter struct {
	io.Writer
}

StripWriter strips all color codes.

Example
strip := &StripWriter{Writer: os.Stdout}
fmt.Fprint(strip, "before \033[31minside\u001b[0m after")
Output:

before inside after

func (*StripWriter) Write

func (w *StripWriter) Write(p []byte) (n int, err error)

Source Files

Jump to

Keyboard shortcuts

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