package colorable
import "github.com/mattn/go-colorable"
Index ¶
- func NewColorable(file *os.File) io.Writer
- func NewColorableStderr() io.Writer
- func NewColorableStdout() io.Writer
- func NewNonColorable(w io.Writer) io.Writer
- type NonColorable
Functions ¶
func NewColorable ¶
NewColorable return new instance of Writer which handle escape sequence.
func NewColorableStderr ¶
NewColorableStderr return new instance of Writer which handle escape sequence for stderr.
func NewColorableStdout ¶
NewColorableStdout return new instance of Writer which handle escape sequence for stdout.
func NewNonColorable ¶
NewNonColorable return new instance of Writer which remove escape sequence from Writer.
Types ¶
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
Source Files ¶
colorable_others.go noncolorable.go
Directories ¶
Path | Synopsis |
---|---|
_example | |
_example2 |
- Version
- v0.0.7
- Published
- Nov 3, 2016
- Platform
- darwin/amd64
- Imports
- 3 packages
- Last checked
- now –
Tools for package owners.