Browse Source

添加os的Compiler的获取

SliverHorn 4 years ago
parent
commit
5c794f3192
1 changed files with 1 additions and 0 deletions
  1. 1 0
      server/utils/server.go

+ 1 - 0
server/utils/server.go

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