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:
parent
4fb3edb919
commit
fd0c79acbf
@ -41,7 +41,7 @@ func NewSystemInfo() *SystemInfo {
|
|||||||
m[strings.TrimSpace(parts[0])] = strings.TrimSpace(parts[1])
|
m[strings.TrimSpace(parts[0])] = strings.TrimSpace(parts[1])
|
||||||
}
|
}
|
||||||
|
|
||||||
sysInfo := new(SystemInfo)
|
var sysInfo *SystemInfo
|
||||||
switch runtime.GOOS {
|
switch runtime.GOOS {
|
||||||
case "linux":
|
case "linux":
|
||||||
sysInfo = &SystemInfo{
|
sysInfo = &SystemInfo{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user