1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Update system_info.go

This commit is contained in:
liyiheng 2018-06-02 11:43:50 +08:00 committed by Chris Cummer
parent 4fb3edb919
commit fd0c79acbf

View File

@ -41,7 +41,7 @@ func NewSystemInfo() *SystemInfo {
m[strings.TrimSpace(parts[0])] = strings.TrimSpace(parts[1])
}
sysInfo := new(SystemInfo)
var sysInfo *SystemInfo
switch runtime.GOOS {
case "linux":
sysInfo = &SystemInfo{