summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorT <t@tjp.lol>2025-04-03 10:42:08 -0600
committerT <t@tjp.lol>2025-04-03 10:43:28 -0600
commitb304395d251e0cf3e3079fd1acf9eb50c16e81ac (patch)
treefdd625dd809eea03523cf4d8bf7d4cbdd55aaa92
parent129bf1b24678743c3ee076ccdb5d5b34f311f98b (diff)
replace []byte(fmt.Sprintf()) with fmt.Appendf([]byte{}, )
-rw-r--r--tour.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/tour.go b/tour.go
index 44df0d6..8b2b431 100644
--- a/tour.go
+++ b/tour.go
@@ -65,7 +65,7 @@ func TourAdd(state *BrowserState, targets []string) error {
return saveTours(state.NamedTours)
}
- state.Modal = []byte(fmt.Sprintf("Added %d urls to the tour\n", len(newurls)))
+ state.Modal = fmt.Appendf([]byte{}, "Added %d urls to the tour\n", len(newurls))
return Print(state)
}
@@ -89,7 +89,7 @@ func TourAddNext(state *BrowserState, targets []string) error {
return saveTours(state.NamedTours)
}
- state.Modal = []byte(fmt.Sprintf("Added %d urls to go next on the tour\n", len(newurls)))
+ state.Modal = fmt.Appendf([]byte{}, "Added %d urls to go next on the tour\n", len(newurls))
return Print(state)
}
@@ -192,7 +192,7 @@ func TourSelect(state *BrowserState, name string) error {
}
state.CurrentTour = tour
- state.Modal = []byte(fmt.Sprintf("Tour %s is now active\n", tourName))
+ state.Modal = fmt.Appendf([]byte{}, "Tour %s is now active\n", tourName)
return Print(state)
}