1
0
mirror of https://github.com/beego/bee.git synced 2024-06-28 08:24:13 +00:00
bee/vendor/github.com/mattn/go-colorable/colorable_others.go
2017-03-19 23:48:59 +01:00

25 lines
323 B
Go

// +build !windows
package colorable
import (
"io"
"os"
)
func NewColorable(file *os.File) io.Writer {
if file == nil {
panic("nil passed instead of *os.File to NewColorable()")
}
return file
}
func NewColorableStdout() io.Writer {
return os.Stdout
}
func NewColorableStderr() io.Writer {
return os.Stderr
}