uname_unsupported.go 364 B

123456789101112131415161718
  1. // +build !linux,!solaris
  2. package kernel
  3. import (
  4. "errors"
  5. )
  6. // Utsname represents the system name structure.
  7. // It is defined here to make it portable as it is available on linux but not
  8. // on windows.
  9. type Utsname struct {
  10. Release [65]byte
  11. }
  12. func uname() (*Utsname, error) {
  13. return nil, errors.New("Kernel version detection is available only on linux")
  14. }