Skip to content

Commit

Permalink
Merge pull request #41 from andreyrubtsov/minor-fix-readme
Browse files Browse the repository at this point in the history
Minor fix for doc helper functions in README
  • Loading branch information
fatih authored Oct 2, 2016
2 parents 0016e26 + bb78242 commit dea9d3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down

0 comments on commit dea9d3a

Please sign in to comment.