Skip to content

Commit

Permalink
Expose colorable Stderr to use as writer
Browse files Browse the repository at this point in the history
  • Loading branch information
achilleas-k committed Dec 1, 2017
1 parent 5df930a commit fccafd9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions color.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fccafd9

Please sign in to comment.