go-colorable: github.com/mattn/go-colorable Index | Files

package colorable

import "github.com/mattn/go-colorable"

Index

Package Files

colorable_others.go noncolorable.go

func NewColorable Uses

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

NewColorable return new instance of Writer which handle escape sequence.

func NewColorableStderr Uses

func NewColorableStderr() io.Writer

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

func NewColorableStdout Uses

func NewColorableStdout() io.Writer

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

func NewNonColorable Uses

func NewNonColorable(w io.Writer) io.Writer

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

type NonColorable Uses

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

NonColorable hold writer but remove escape sequence.

func (*NonColorable) Write Uses

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

Write write data on console

Package colorable imports 4 packages (graph) and is imported by 900 packages. Updated 2019-06-15. Refresh now. Tools for package owners.