From f5fdbd1d2e98b53f4ef3a555bb4cd9110254e906 Mon Sep 17 00:00:00 2001 From: jolheiser Date: Wed, 26 Feb 2020 13:57:13 -0600 Subject: [PATCH] Simplify example Signed-off-by: jolheiser --- color/README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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