1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
diff --git a/colorsfg.go b/colorsfg.go
index c2cb86cd4d9e849589b512eddcbca6ba437c7a3a..c7dbddd43cf9b1dfb3fb980df213721c1ead86ce 100644
--- a/colorsfg.go
+++ b/colorsfg.go
@@ -53,12 +53,7 @@ return escape + greenfg + set
}
// UnsetGreen resets the foreground color from green to default.
-func UnsetGreen() string {
- if nocolorIsSet {
- return ""
- }
- return escape + resetfg + set
-}
+var UnsetGreen func() string = UnsetBlack
// Yellow wraps the content in ANSI codes to make its foreground color yellow
func Yellow(content ...interface{}) string {
|