goInfo icon indicating copy to clipboard operation
goInfo copied to clipboard

Platform / arch for Windows hosts

Open genez opened this issue 4 years ago • 2 comments

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()}

genez avatar Mar 03 '20 10:03 genez

Wouldn't be enough storing runtime.GOARCH into the struct?

mdelapenya avatar Oct 21 '21 16:10 mdelapenya