labstack / gommon

Common packages for Go
MIT License
536 stars 100 forks source link

No color is produced #30

Closed ghost closed 5 years ago

ghost commented 5 years ago

Using this file:

package main
import "github.com/labstack/gommon/color"
func main() {
   color.Println(color.Green("aaaaa bbbbb"))
}

I just get plain white output.

ghost commented 5 years ago

Fix:

package main
import "github.com/labstack/gommon/color"
func main() {
   color.Enable()
   color.Println(color.Green("aaaaa bbbbb"))
}