diff options
author | Felix Lange <fjl@twurst.com> | 2017-01-11 02:33:17 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2017-01-11 05:33:24 +0800 |
commit | d78f9b834ade0f1ebcf2532bf90d01c85ad50a8e (patch) | |
tree | dd03906433e1032a0b185910773206246d8a1556 /vendor/github.com/mattn/go-colorable/colorable_others.go | |
parent | 02b67558e8eaa7b34a28b8dd0223824bbbb52349 (diff) | |
download | go-tangerine-d78f9b834ade0f1ebcf2532bf90d01c85ad50a8e.tar.gz go-tangerine-d78f9b834ade0f1ebcf2532bf90d01c85ad50a8e.tar.zst go-tangerine-d78f9b834ade0f1ebcf2532bf90d01c85ad50a8e.zip |
vendor: update all dependencies except Azure SDK
The Azure SDK doesn't support Go 1.5 anymore. We can't upgrade it until
Go 1.8 comes out.
Diffstat (limited to 'vendor/github.com/mattn/go-colorable/colorable_others.go')
-rw-r--r-- | vendor/github.com/mattn/go-colorable/colorable_others.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vendor/github.com/mattn/go-colorable/colorable_others.go b/vendor/github.com/mattn/go-colorable/colorable_others.go index 52d6653b3..a7fe19a8c 100644 --- a/vendor/github.com/mattn/go-colorable/colorable_others.go +++ b/vendor/github.com/mattn/go-colorable/colorable_others.go @@ -7,6 +7,7 @@ import ( "os" ) +// NewColorable return new instance of Writer which handle escape sequence. func NewColorable(file *os.File) io.Writer { if file == nil { panic("nil passed instead of *os.File to NewColorable()") @@ -15,10 +16,12 @@ func NewColorable(file *os.File) io.Writer { return file } +// NewColorableStdout return new instance of Writer which handle escape sequence for stdout. func NewColorableStdout() io.Writer { return os.Stdout } +// NewColorableStderr return new instance of Writer which handle escape sequence for stderr. func NewColorableStderr() io.Writer { return os.Stderr } |