Back to godoc.org

Package color

v0.0.0-...-d4769a7
Latest Go to latest

The latest major version is .

Published: Aug 1, 2020 | License: Apache-2.0 | Module: github.com/luci/luci-go

Index

Examples

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)

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier