diff options
| author | Paul Buetow <paul@buetow.org> | 2024-12-11 22:07:51 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-12-11 22:07:51 +0200 |
| commit | 1dca76e728a70b70ee8001c87407acf962e731cd (patch) | |
| tree | 4636d5b8769595de135bca8977b951d0a570da48 /internal/colour | |
| parent | a5529938536f7a530f0c55e5a82b16a4c80af5b4 (diff) | |
refactor a bit again
Diffstat (limited to 'internal/colour')
| -rw-r--r-- | internal/colour/colour.go | 4 |
1 files changed, 2 insertions, 2 deletions
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() |
