We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0016e26 + bb78242 commit dea9d3aCopy full SHA for dea9d3a
README.md
@@ -81,8 +81,8 @@ info := color.New(color.FgWhite, color.BgGreen).SprintFunc()
81
fmt.Printf("This %s rocks!\n", info("package"))
82
83
// Use helper functions
84
-fmt.Printf("This", color.RedString("warning"), "should be not neglected.")
85
-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.")
86
87
// Windows supported too! Just don't forget to change the output to color.Output
88
fmt.Fprintf(color.Output, "Windows support: %s", color.GreenString("PASS"))
0 commit comments