Browse Source

添加os的Compiler的获取

main
SliverHorn 4 years ago
parent
commit
5c794f3192
  1. 1
      server/utils/server.go

1
server/utils/server.go

@ -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

Loading…
Cancel
Save