From 1dca76e728a70b70ee8001c87407acf962e731cd Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 11 Dec 2024 22:07:51 +0200 Subject: refactor a bit again --- internal/colour/colour.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/colour') diff --git a/internal/colour/colour.go b/internal/colour/colour.go index 09b9fb0..54cb1d9 100644 --- a/internal/colour/colour.go +++ b/internal/colour/colour.go @@ -8,8 +8,8 @@ import ( var ( // infoCol = color.New(color.FgCyan, color.BgBlue, color.Bold) - Infof = fmt.Printf - Infoln = fmt.Println + Infof = func(format string, args ...any) { fmt.Printf(format, args...) } + Infoln = func(args ...any) { fmt.Println(args...) } info2Col = color.New(color.FgHiYellow, color.BgBlue) Info2f = info2Col.PrintfFunc() SInfo2f = info2Col.SprintfFunc() -- cgit v1.2.3