build: use sequence Split introduced in go1.24

This commit is contained in:
Nick Craig-Wood
2025-09-15 12:45:57 +01:00
parent 4368863fcb
commit 71b9b4ad7a
20 changed files with 28 additions and 28 deletions
+1 -1
View File
@@ -157,7 +157,7 @@ func testsToRegexp(tests []string) string {
// Make a trie showing which parts are used at each level
for _, test := range tests {
parent := split
for _, name := range strings.Split(test, "/") {
for name := range strings.SplitSeq(test, "/") {
current := parent[name]
if current == nil {
current = trie{}