https://github.com/mattn/go-colorable.git

mattn 200aed43a9 inherit io.Writer %!s(int64=11) %!d(string=hai) anos
_example 53471aefcd First import %!s(int64=11) %!d(string=hai) anos
README.md 8edacede63 Update README.md %!s(int64=11) %!d(string=hai) anos
colorable_others.go 200aed43a9 inherit io.Writer %!s(int64=11) %!d(string=hai) anos
colorable_windows.go 200aed43a9 inherit io.Writer %!s(int64=11) %!d(string=hai) anos

README.md

go-colorable

Colorable writer for windows

Too Bad!

So Good!

Usage

logrus.SetOutput(colorable.NewColorableWriter())

logrus.Info("succeeded")
logrus.Warn("not correct")
logrus.Error("something error")
logrus.Fatal("panic")

Installation

$ go get github.com/mattn/go-colorable

License

MIT

Author

Yasuhiro Matsumoto (a.k.a mattn)