Detect runtime OS and Architecture in Go

Gao

Detect Runtime OS

import "runtime" func main() { os := runtime.GOOS arch := runtime.GOARCH // Supported list: `go tool dist list` }