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)) }