Detect runtime OS and Architecture in Go

Author:Gao
Created At:2022-06-28

Detect Runtime OS

import "runtime"

func main() {
  os := runtime.GOOS
  arch := runtime.GOARCH

  // Supported list: `go tool dist list`
}