github.com/keysonzzz/kmg@v0.0.0-20151121023212-05317bfd7d39/kmgSys/systemUsage_darwin.go (about) 1 package kmgSys 2 3 func UsagePreInstall() {} 4 5 func Memory() (used float64, total int) { 6 panic("not support os x") 7 return float64(0), 0 8 } 9 10 func Cpu() (used float64, numOfCore int) { 11 panic("not support os x") 12 return float64(0), 0 13 } 14 15 func Disk() (used float64, total int) { 16 panic("not support os x") 17 return float64(0), 0 18 } 19 20 func FindDeviceNameByIp(ip string) string { 21 panic("not support os x") 22 return "" 23 } 24 25 func NetworkRXTX(deviceName string) (rx int, tx int) { 26 panic("not support os x") 27 return 0, 0 28 } 29 func NetworkConnection() (connectionCount int) { 30 panic("not support os x") 31 return 0 32 } 33 34 func IKEUserCount() int { 35 panic("not support os x") 36 return 0 37 }