...

Package colorable

import "github.com/mattn/go-colorable"
Overview
Index
Subdirectories

Overview ▾

func NewColorable

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

NewColorable returns new instance of Writer which handles escape sequence.

func NewColorableStderr

func NewColorableStderr() io.Writer

NewColorableStderr returns new instance of Writer which handles escape sequence for stderr.

func NewColorableStdout

func NewColorableStdout() io.Writer

NewColorableStdout returns new instance of Writer which handles escape sequence for stdout.

func NewNonColorable

func NewNonColorable(w io.Writer) io.Writer

NewNonColorable returns new instance of Writer which removes escape sequence from Writer.

type NonColorable

NonColorable holds writer but removes escape sequence.

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

func (*NonColorable) Write

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

Write writes data on console

Subdirectories

Name Synopsis
..
cmd
colorable