1
0
mirror of https://github.com/beego/bee.git synced 2024-06-03 02:23:27 +00:00
bee/vendor/github.com/mattn/go-colorable/colorable_appengine.go
2018-10-13 21:45:53 +08:00

28 lines
586 B
Go

// +build appengine
package colorable
import (
"io"
"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()")
}
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
}