From 8fbc04cfdf939ee2a0b76cc267b31e01038aa955 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 8 Feb 2025 22:49:31 +0200 Subject: more use of tables --- internal/colour/colour.go | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'internal/colour') 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() ) -- cgit v1.2.3