From bb78242176cb504879c1fed7a3c3195170728d6f Mon Sep 17 00:00:00 2001 From: Andrey Rubtsov Date: Sun, 2 Oct 2016 10:06:52 +0300 Subject: [PATCH] Minor fix for doc helper functions in README --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0921f98..6e39e91 100644 --- a/README.md +++ b/README.md @@ -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"))