summaryrefslogtreecommitdiff
path: root/internal/colour
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-02-08 22:49:31 +0200
committerPaul Buetow <paul@buetow.org>2025-02-08 22:49:31 +0200
commit8fbc04cfdf939ee2a0b76cc267b31e01038aa955 (patch)
tree750f832b2db27f97d8487b8a06676814e0e54229 /internal/colour
parent316ef97b655e4837dbce4af3747003ed924b5874 (diff)
more use of tables
Diffstat (limited to 'internal/colour')
-rw-r--r--internal/colour/colour.go15
1 files changed, 5 insertions, 10 deletions
diff --git a/internal/colour/colour.go b/internal/colour/colour.go
index 030a6ef..3bdfffe 100644
--- a/internal/colour/colour.go
+++ b/internal/colour/colour.go
@@ -13,15 +13,9 @@ var (
}
Infoln = func(args ...any) { fmt.Println(args...) }
- Info2Col = color.New(color.FgHiYellow, color.BgBlue)
- Info2fln = func(format string, args ...any) {
- Info2Col.Printf(format, args...)
- fmt.Print("\n")
- }
- SInfo2f = Info2Col.SprintfFunc()
-
- warnCol = color.New(color.FgHiWhite, color.BgRed)
- Warnln = warnCol.PrintlnFunc()
+ AttentionCol = color.New(color.FgHiYellow, color.BgBlue)
+ warnCol = color.New(color.FgHiWhite, color.BgRed)
+ Warnln = warnCol.PrintlnFunc()
successCol = color.New(color.FgWhite, color.BgGreen)
Successfln = func(format string, args ...any) {
@@ -30,5 +24,6 @@ var (
}
- Ackf = color.New(color.FgBlack, color.BgHiYellow, color.Bold).PrintfFunc()
+ AckCol = color.New(color.FgBlack, color.BgHiYellow, color.Bold)
+ Ackf = AckCol.PrintfFunc()
)