Skip to content

Commit

Permalink
Merge pull request #87 from achilleas-k/expose-colorised-stderr
Browse files Browse the repository at this point in the history
Expose colorable Stderr to use as writer
  • Loading branch information
fatih committed May 15, 2018
2 parents 507f605 + fccafd9 commit 5b77d2a
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 5b77d2a

Please sign in to comment.