diff --git a/color/README.md b/color/README.md index 9656efd..1557d77 100644 --- a/color/README.md +++ b/color/README.md @@ -9,8 +9,7 @@ text := color.FgRed.Format("red") ## Formatting a string with a full color ```go -c := color.New(color.BgGreen, color.FgRed, color.Bold) -text := c.Format("green background, red text, and bold") +text := color.New(color.BgGreen, color.FgRed, color.Bold).Format("green background, red text, and bold") ``` ## Formatting strings with multiple colors