github.com/pritambaral/docker@v1.4.2-0.20150120174542-b2fe1b3dd952/pkg/parsers/kernel/uname_unsupported.go (about) 1 // +build !linux 2 3 package kernel 4 5 import ( 6 "errors" 7 ) 8 9 type Utsname struct { 10 Release [65]byte 11 } 12 13 func uname() (*Utsname, error) { 14 return nil, errors.New("Kernel version detection is available only on linux") 15 }