MCPcopy
hub / github.com/ph4ntonn/Stowaway / CheckSystem

Function CheckSystem

utils/utils.go:56–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54}
55
56func CheckSystem() (sysType uint32) {
57 var os = runtime.GOOS
58 switch os {
59 case "windows":
60 sysType = 0x01
61 case "linux":
62 sysType = 0x02
63 default:
64 sysType = 0x03
65 }
66 return
67}
68
69func GetSystemInfo() (string, string) {
70 var os = runtime.GOOS

Callers 2

startMethod · 0.92
startMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected