添加os的Compiler的获取
This commit is contained in:
parent
22bc9f43bd
commit
272f6c7b39
|
@ -54,6 +54,7 @@ type Disk struct {
|
|||
func InitOS() (o Os) {
|
||||
o.GOOS = runtime.GOOS
|
||||
o.NumCPU = runtime.NumCPU()
|
||||
o.Compiler = runtime.Compiler
|
||||
o.GoVersion = runtime.Version()
|
||||
o.NumGoroutine = runtime.NumGoroutine()
|
||||
return o
|
||||
|
|
Loading…
Reference in New Issue