Debian Codegraph @

rainbow/README.md

raw symbols SCIP
1 # rainbooooowwww
2
3 An `io.Writer` for things that end up being printed to a terminal.
4
5 # Usage
6
7 Going back to work on Monday is hard. Cheerup your coworkers by adding
8 some colors to the production logs!
9
10 ```go
11 joyfulOutput := rainbow.New(os.Stderr, 252, 255, 43)
12 log.SetOutput(joyfulOutput)
13 ```
14
15 Wee, much happier coworkers!
16
17 ![rainbow-demo](https://cloud.githubusercontent.com/assets/1189716/3563716/3dbd46ea-0a4d-11e4-8c6c-948d9925d0dd.gif)
18
19 # Caveats
20
21 Using that for your logs might not make your coworkers very happy.