2017-11-01 19:37:53 -04:00
|
|
|
// +build !linux
|
2014-01-31 05:16:42 -05:00
|
|
|
|
2014-07-28 20:23:38 -04:00
|
|
|
package kernel
|
2013-05-15 20:40:47 -04:00
|
|
|
|
|
|
|
import (
|
|
|
|
"errors"
|
|
|
|
)
|
|
|
|
|
2015-07-25 04:35:07 -04: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 21:55:59 -04:00
|
|
|
type Utsname struct {
|
|
|
|
Release [65]byte
|
|
|
|
}
|
|
|
|
|
|
|
|
func uname() (*Utsname, error) {
|
2014-01-30 17:41:10 -05:00
|
|
|
return nil, errors.New("Kernel version detection is available only on linux")
|
2013-05-15 20:40:47 -04:00
|
|
|
}
|