Back to godoc.org
github.com/mattn/go-colorable

Package colorable

v0.0.9
Latest Go to latest

The latest major version is .

Published: Aug 1, 2017 | License: MIT | Module: github.com/mattn/go-colorable

Index

func NewColorable

func NewColorable(file *os.File) io.Writer

NewColorable return new instance of Writer which handle escape sequence.

func NewColorableStderr

func NewColorableStderr() io.Writer

NewColorableStderr return new instance of Writer which handle escape sequence for stderr.

func NewColorableStdout

func NewColorableStdout() io.Writer

NewColorableStdout return new instance of Writer which handle escape sequence for stdout.

func NewNonColorable

func NewNonColorable(w io.Writer) io.Writer

NewNonColorable return new instance of Writer which remove escape sequence from Writer.

type NonColorable

type NonColorable struct {
	// contains filtered or unexported fields
}

NonColorable hold writer but remove escape sequence.

func (*NonColorable) Write

func (w *NonColorable) Write(data []byte) (n int, err error)

Write write data on console

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