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

mattn 200aed43a9 inherit io.Writer 11 vuotta sitten
_example 53471aefcd First import 11 vuotta sitten
README.md 8edacede63 Update README.md 11 vuotta sitten
colorable_others.go 200aed43a9 inherit io.Writer 11 vuotta sitten
colorable_windows.go 200aed43a9 inherit io.Writer 11 vuotta sitten

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)