uname_unsupported.go 219 B

123456789101112131415
  1. // +build !linux !amd64
  2. package utils
  3. import (
  4. "errors"
  5. )
  6. type Utsname struct {
  7. Release [65]byte
  8. }
  9. func uname() (*Utsname, error) {
  10. return nil, errors.New("Kernel version detection is available only on linux")
  11. }