2016-03-25 16:38:00 -07:00
|
|
|
// +build !linux,!solaris
|
2014-01-31 03:16:42 -07:00
|
|
|
|
2014-07-28 17:23:38 -07:00
|
|
|
package kernel
|
2013-05-15 17:40:47 -07:00
|
|
|
|
|
|
|
import (
|
|
|
|
"errors"
|
|
|
|
)
|
|
|
|
|
2015-07-25 10:35:07 +02:00
|
|
|
// Utsname represents the system name structure.
|
|
|
|
// It is defined here to make it portable as it is available on linux but not
|
|
|
|
// on windows.
|
2013-05-18 22:55:59 -03:00
|
|
|
type Utsname struct {
|
|
|
|
Release [65]byte
|
|
|
|
}
|
|
|
|
|
|
|
|
func uname() (*Utsname, error) {
|
2014-01-30 22:41:10 +00:00
|
|
|
return nil, errors.New("Kernel version detection is available only on linux")
|
2013-05-15 17:40:47 -07:00
|
|
|
}
|