Apply go fix -stringsseq ./...

This commit is contained in:
Michael Eischer
2026-07-22 22:27:07 +02:00
parent 31e96f4ec9
commit 58f92708c2
10 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ type SnapshotGroupByOptions struct {
func splitSnapshotGroupBy(s string) (SnapshotGroupByOptions, error) {
var l SnapshotGroupByOptions
for _, option := range strings.Split(s, ",") {
for option := range strings.SplitSeq(s, ",") {
switch option {
case "host", "hosts":
l.Host = true
+1 -1
View File
@@ -12,7 +12,7 @@ type TagList []string
// need to be separated by commas. Whitespace is stripped around the individual
// tags.
func splitTagList(s string) (l TagList) {
for _, t := range strings.Split(s, ",") {
for t := range strings.SplitSeq(s, ",") {
l = append(l, strings.TrimSpace(t))
}
return l