Set Go toolchain to v1.26.1 and apply modernizations (#138)

This change makes sure that we use the latest Go version when building
and applies some modernization fixes.
This commit is contained in:
Philip Laine
2026-03-12 21:40:36 +01:00
committed by GitHub
parent 0fde3631b2
commit 47b1f55c45
8 changed files with 34 additions and 41 deletions
+1 -1
View File
@@ -137,7 +137,7 @@ func main() {
defaultLabelsMap := make(map[string]string)
if defaultLabels != "" {
for _, s := range strings.Split(defaultLabels, ",") {
for s := range strings.SplitSeq(defaultLabels, ",") {
kv := strings.Split(s, "=")
if len(kv) != 2 {
panic(fmt.Errorf("invalid label format: %s", s))