在统计用户信息时,需要获取当前用户的操作系统等信息,并返回服务器端。 fmt.Println(runtime.GOOS) //获取当前操作系统 fmt.Println(runtime.GOARCH) //获取当前系统架构 输出: windows amd64