diff options
| author | Andrey Rubtsov <andrii.rubtsov@gmail.com> | 2016-10-02 07:06:52 +0000 |
|---|---|---|
| committer | Andrey Rubtsov <andrii.rubtsov@gmail.com> | 2016-10-02 07:06:52 +0000 |
| commit | bb78242176cb504879c1fed7a3c3195170728d6f (patch) | |
| tree | d3d3b15fdcab7a4db1fdb9067a5d675b64899a2b /README.md | |
| parent | 0016e2689083bc05a71fc0bdcd75f4947f6a5182 (diff) | |
| download | colour-bb78242176cb504879c1fed7a3c3195170728d6f.tar.gz colour-bb78242176cb504879c1fed7a3c3195170728d6f.tar.bz2 | |
Minor fix for doc helper functions in README
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -81,8 +81,8 @@ info := color.New(color.FgWhite, color.BgGreen).SprintFunc() fmt.Printf("This %s rocks!\n", info("package")) // Use helper functions -fmt.Printf("This", color.RedString("warning"), "should be not neglected.") -fmt.Printf(color.GreenString("Info:"), "an important message." ) +fmt.Println("This", color.RedString("warning"), "should be not neglected.") +fmt.Printf("%v %v\n", color.GreenString("Info:"), "an important message.") // Windows supported too! Just don't forget to change the output to color.Output fmt.Fprintf(color.Output, "Windows support: %s", color.GreenString("PASS")) |
