Skip to content

Instantly share code, notes, and snippets.

@shawnsmithdev
Created September 12, 2022 19:51
Show Gist options
  • Save shawnsmithdev/4a0aadd356f4d8a5cbf69f900927f913 to your computer and use it in GitHub Desktop.
Save shawnsmithdev/4a0aadd356f4d8a5cbf69f900927f913 to your computer and use it in GitHub Desktop.
Where am i? What is going on?
package main
import "fmt"
import "runtime"
func main() {
fmt.Printf("OS: %s\n", runtime.GOOS)
fmt.Printf("Architecture: %s\n", runtime.GOARCH)
fmt.Printf("Go: %s\n", runtime.Version())
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment