Explorar o código

添加os的Compiler的获取

SliverHorn %!s(int64=4) %!d(string=hai) anos
pai
achega
5c794f3192
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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