Update colors #2

Merged
jolheiser merged 1 commits from refs/pull/2/head into master 2020-02-26 20:01:23 +00:00
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