I want to know how to get full information about PC and BIOS. I came across this post - https://groups.google.com/forum/#!msg/golang-nuts/pKuFQxAy4P4/62FnqGON1pEJ
Code:
package main
import (
"fmt"
"github.com/ochapman/godmi"
)
func main(){
BS:=godmi.GetBIOSInformation()
fmt.Println("BS:",BS)
sys:=godmi.GetSystemInformation()
fmt.Println("sys:",sys)
BB:=godmi.GetBaseboardInformation()
fmt.Println("BB:",BB)
}
I could not compile because there is an error:
# github.com/ochapman/godmi
go\src\github.com\ochapman\godmi\godmi.go:674:13: undefined: syscall.Mmap
go\src\github.com\ochapman\godmi\godmi.go:674:79: undefined: syscall.PROT_RE
go\src\github.com\ochapman\godmi\godmi.go:674:98: undefined: syscall.MAP_SHA
go\src\github.com\ochapman\godmi\godmi.go:680:8: undefined: syscall.Munmap
As I understood it only for Linux, for Windows I did not find anything like it at all. Can eat an alternative?