Update colors #2
|
@ -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
|
||||||
|
|
Reference in New Issue