runtime查看系统版本

cooolr 于 2021-04-26 发布
package main

import "fmt"
import "runtime"

func main() {
    fmt.Println(runtime.GOOS)
}