From fccafd9e876be44d0d7b380a3b03aeb661c1e231 Mon Sep 17 00:00:00 2001 From: Achilleas Koutsou Date: Fri, 1 Dec 2017 18:21:40 +0100 Subject: [PATCH] Expose colorable Stderr to use as writer --- color.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/color.go b/color.go index b1f591d..91c8e9f 100644 --- a/color.go +++ b/color.go @@ -24,6 +24,9 @@ var ( // os.Stdout is used. Output = colorable.NewColorableStdout() + // Error defines a color supporting writer for os.Stderr. + Error = colorable.NewColorableStderr() + // colorsCache is used to reduce the count of created Color objects and // allows to reuse already created objects with required Attribute. colorsCache = make(map[Attribute]*Color)