|
@ -54,6 +54,7 @@ type Disk struct { |
|
|
func InitOS() (o Os) { |
|
|
func InitOS() (o Os) { |
|
|
o.GOOS = runtime.GOOS |
|
|
o.GOOS = runtime.GOOS |
|
|
o.NumCPU = runtime.NumCPU() |
|
|
o.NumCPU = runtime.NumCPU() |
|
|
|
|
|
o.Compiler = runtime.Compiler |
|
|
o.GoVersion = runtime.Version() |
|
|
o.GoVersion = runtime.Version() |
|
|
o.NumGoroutine = runtime.NumGoroutine() |
|
|
o.NumGoroutine = runtime.NumGoroutine() |
|
|
return o |
|
|
return o |
|
|