aboutsummaryrefslogtreecommitdiff
path: root/doc.go
diff options
context:
space:
mode:
authorFatih Arslan <ftharsln@gmail.com>2015-04-22 09:45:13 +0000
committerFatih Arslan <ftharsln@gmail.com>2015-04-22 09:45:13 +0000
commit987617d12c58bfdcef4537354ddb5f1305c75765 (patch)
treeb2060c14ae3d525e2b0d7e6d68bf630c71b60a3d /doc.go
parent0419888e7d72720691b745ef08e319a3df443a7d (diff)
downloadcolour-987617d12c58bfdcef4537354ddb5f1305c75765.tar.gz
colour-987617d12c58bfdcef4537354ddb5f1305c75765.tar.bz2
doc: fix whitspace
Diffstat (limited to 'doc.go')
-rw-r--r--doc.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/doc.go b/doc.go
index 5f7ad30..4a97772 100644
--- a/doc.go
+++ b/doc.go
@@ -64,12 +64,11 @@ Windows support is enabled by default. All Print functions works as intended.
However only for color.SprintXXX functions, user should use fmt.FprintXXX and
set the output to color.Output:
- fmt.Fprintf(color.Output, "Windows support: %s", color.GreenString("PASS"))
+ fmt.Fprintf(color.Output, "Windows support: %s", color.GreenString("PASS"))
info := New(FgWhite, BgGreen).SprintFunc()
fmt.Fprintf(color.Output, "this %s rocks!\n", info("package"))
-
Using with existing code is possible. Just use the Set() method to set the
standard output to the given parameters. That way a rewrite of an existing
code is not required.