|
|
@@ -6,7 +6,8 @@ Style terminal text.
|
|
|
|
|
|
### Usage
|
|
|
[labstack/gommon/color](https://github.com/labstack/gommon/blob/master/color/color_test.go)
|
|
|
-// Colored text
|
|
|
+
|
|
|
+#### Colored text
|
|
|
```go
|
|
|
fmt.Println(color.Black("black"))
|
|
|
fmt.Println(color.Red("red"))
|
|
|
@@ -20,7 +21,7 @@ fmt.Println(color.Grey("grey"))
|
|
|
```
|
|
|

|
|
|
|
|
|
-// Colored background
|
|
|
+#### Colored background
|
|
|
```go
|
|
|
fmt.Println(color.BlackBg("black background", color.Wht))
|
|
|
fmt.Println(color.RedBg("red background"))
|
|
|
@@ -33,7 +34,7 @@ fmt.Println(color.WhiteBg("white background"))
|
|
|
```
|
|
|

|
|
|
|
|
|
-// Emphasis
|
|
|
+#### Emphasis
|
|
|
```go
|
|
|
fmt.Println(color.Bold("bold"))
|
|
|
fmt.Println(color.Dim("dim"))
|
|
|
@@ -45,7 +46,7 @@ fmt.Println(color.Strikeout("strikeout"))
|
|
|
```
|
|
|

|
|
|
|
|
|
-// Mix and match
|
|
|
+#### Mix and match
|
|
|
```go
|
|
|
fmt.Println(Green("bold green with white background", B, WhtBg))
|
|
|
fmt.Println(Red("underline red", U))
|