Simplify example

Signed-off-by: jolheiser <john.olheiser@gmail.com>
pull/2/head
jolheiser 2020-02-26 13:57:13 -06:00
parent 11378d6bc2
commit f5fdbd1d2e
No known key found for this signature in database
GPG Key ID: 83E486E71AFEB820
1 changed files with 1 additions and 2 deletions

View File

@ -9,8 +9,7 @@ text := color.FgRed.Format("red")
## Formatting a string with a full color ## Formatting a string with a full color
```go ```go
c := color.New(color.BgGreen, color.FgRed, color.Bold) text := color.New(color.BgGreen, color.FgRed, color.Bold).Format("green background, red text, and bold")
text := c.Format("green background, red text, and bold")
``` ```
## Formatting strings with multiple colors ## Formatting strings with multiple colors