diff options
| author | Fatih Arslan <ftharsln@gmail.com> | 2014-02-18 09:01:28 +0000 |
|---|---|---|
| committer | Fatih Arslan <ftharsln@gmail.com> | 2014-02-18 09:01:28 +0000 |
| commit | abda2caec38fae5f90a66c37462b6f60e291eca0 (patch) | |
| tree | 4f303b9e9ff4e2b653906c3ceef9c51dcbb722a0 /README.md | |
| parent | 7da2493d6ec6ace74dff0a085ecb74b796d4a6b4 (diff) | |
| download | colour-abda2caec38fae5f90a66c37462b6f60e291eca0.tar.gz colour-abda2caec38fae5f90a66c37462b6f60e291eca0.tar.bz2 | |
Typo fixes and doc improvements.
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -1,7 +1,7 @@ # Color [](http://godoc.org/github.com/fatih/color) Color let you use colorized outputs in terms of [ASCI Escape -Codes](http://en.wikipedia.org/wiki/ANSI_escape_code#Colors). The api can be +Codes](http://en.wikipedia.org/wiki/ANSI_escape_code#Colors). The API can be used in several way, pick one one that suits you. @@ -18,7 +18,9 @@ go get github.com/fatih/color ```go // Print with default helper functions color.Cyan("Prints text in cyan.") -color.Blue("Prints %s in blue.", "text") // a newline will be appended automatically + +// a newline will be appended automatically +color.Blue("Prints %s in blue.", "text") // These are using by default foreground colors. color.Red("We have red") @@ -54,8 +56,10 @@ whiteBackground.Println("Red text with White background.") ```go // Use handy standard colors. color.Set(collor.FgYellow) -fmt.Println("Existing text in your codebase will be now in Yellow") + +fmt.Println("Existing text will be now in Yellow") fmt.Printf("This one %s\n", "too") + color.Unset() // don't forget to unset // You can mix up parameters |
