From 1f59dd60e53cc1ea4e2cd3cbf0fae0ce95476594 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sun, 5 Oct 2025 01:03:16 +0100 Subject: [PATCH] Refactor Signed-off-by: Oliver Davies --- internal/zet/zet.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/internal/zet/zet.go b/internal/zet/zet.go index 1426822..dd7b4c6 100644 --- a/internal/zet/zet.go +++ b/internal/zet/zet.go @@ -13,20 +13,20 @@ import ( ) type ZetList struct { - Ids []int - UseColors bool + Ids []int + UseColours bool } -func NewZetList(ids []int, useColors ...bool) *ZetList { - colorSetting := true +func NewZetList(ids []int, useColours ...bool) *ZetList { + colourSetting := true - if len(useColors) > 0 { - colorSetting = useColors[0] + if len(useColours) > 0 { + colourSetting = useColours[0] } return &ZetList{ - Ids: ids, - UseColors: colorSetting, + Ids: ids, + UseColours: colourSetting, } } @@ -39,7 +39,7 @@ func (z *ZetList) Parse() []string { for _, num := range z.Ids { line := fmt.Sprintf("%s %s", strconv.Itoa(num), getTitle(num)) - if z.UseColors { + if z.UseColours { line = fmt.Sprintf("%s%s%s %s", green, strconv.Itoa(num), reset, getTitle(num)) }