//go:build !windows package main import ( "os" "runtime" ) func collectHardwareComponents() (map[string]string, error) { hostname, _ := os.Hostname() components := map[string]string{ "platform": runtime.GOOS + "-" + runtime.GOARCH, } if normalized := normalizeComponent(hostname); normalized != "" { components["hostname"] = normalized } return components, ensureNotEmpty(components) }