goInfo
goInfo copied to clipboard
Platform / arch for Windows hosts
You can get the information and remove the hardcoded "unknown" in this way:
arch := os.Getenv("PROCESSOR_ARCHITECTURE")
gio := &GoInfoObject{Kernel:"windows",Core:ver,Platform:arch,OS:"windows",GoOS:runtime.GOOS,CPUs:runtime.NumCPU()}
Wouldn't be enough storing runtime.GOARCH
into the struct?