mirror of https://github.com/shirou/gopsutil
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
232 B
Go
14 lines
232 B
Go
6 years ago
|
// +build linux freebsd openbsd darwin solaris
|
||
|
|
||
|
package host
|
||
|
|
||
|
import (
|
||
|
"golang.org/x/sys/unix"
|
||
|
)
|
||
|
|
||
|
func kernelArch() (string, error) {
|
||
|
var utsname unix.Utsname
|
||
|
err := unix.Uname(&utsname)
|
||
|
return string(utsname.Machine[:]), err
|
||
|
}
|