1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
diff --git a/colorsfg.go b/colorsfg.go
index c7dbddd43cf9b1dfb3fb980df213721c1ead86ce..35541c39273c870732169e90eee423f738dff102 100644
--- a/colorsfg.go
+++ b/colorsfg.go
@@ -29,15 +29,15 @@ return SetRed() + fmt.Sprint(content...) + UnsetRed()
}
// SetRed sets the foreground color to red
-var SetRed func() string = UnsetBlack
-
-// UnsetRed resets the foreground color from red to default.
-func UnsetRed() string {
+func SetRed() string {
if nocolorIsSet {
return ""
}
- return escape + resetfg + set
+ return escape + redfg + set
}
+
+// UnsetRed resets the foreground color from red to default.
+var UnsetRed func() string = UnsetBlack
// Green wraps the content in ANSI codes to make its foreground color green
func Green(content ...interface{}) string {
|