refactor: small go 1.26 updates and go fix changes

This commit is contained in:
henrygd
2026-02-19 17:57:06 -05:00
parent 5d8906c9b2
commit 04600d83cc
39 changed files with 9 additions and 46 deletions

View File

@@ -127,7 +127,7 @@ func (a *Agent) initializeDiskInfo() {
// Add EXTRA_FILESYSTEMS env var values to fsStats
if extraFilesystems, exists := GetEnv("EXTRA_FILESYSTEMS"); exists {
for _, fsEntry := range strings.Split(extraFilesystems, ",") {
for fsEntry := range strings.SplitSeq(extraFilesystems, ",") {
// Parse custom name from format: device__customname
fs, customName := parseFilesystemEntry(fsEntry)