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

Code:

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

func (*StripWriter) Write

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

Source Files