]> git.immae.eu Git - github/fretlink/terraform-provider-statuscake.git/blob - vendor/github.com/mattn/go-colorable/colorable_appengine.go
Upgrade to 0.12
[github/fretlink/terraform-provider-statuscake.git] / vendor / github.com / mattn / go-colorable / colorable_appengine.go
1 // +build appengine
2
3 package colorable
4
5 import (
6 "io"
7 "os"
8
9 _ "github.com/mattn/go-isatty"
10 )
11
12 // NewColorable return new instance of Writer which handle escape sequence.
13 func NewColorable(file *os.File) io.Writer {
14 if file == nil {
15 panic("nil passed instead of *os.File to NewColorable()")
16 }
17
18 return file
19 }
20
21 // NewColorableStdout return new instance of Writer which handle escape sequence for stdout.
22 func NewColorableStdout() io.Writer {
23 return os.Stdout
24 }
25
26 // NewColorableStderr return new instance of Writer which handle escape sequence for stderr.
27 func NewColorableStderr() io.Writer {
28 return os.Stderr
29 }