How to Check Golang Version

Hey! If you love Go and building Go apps as much as I do, let's connect on Twitter or LinkedIn. I talk about this stuff all the time!

Want to learn how to build better Go applications faster and easier? You can.

Check out my course on the Go Standard Library. You can check it out now for free.


To check the version of Go installed on your system, you can use the go version command in your terminal or command prompt.
For example:

$ go version
go version go1.15.2 darwin/amd64

This command will print the version of Go that is currently installed on your system, as well as the operating system and architecture for which it was built.

If you want to check the version of Go that is being used by a specific Go program, you can include the -v flag when running the program. For example:

$ go run -v main.go

This command will print the version of Go that is used to run the main.go program, as well as the build and runtime information for the program.

Note: If you are using Go with a version management tool such as gvm or asdf, you may need to use a different command to check the version of Go that is currently being used. Refer to the documentation for your version management tool for more information.



Stay up to date on the latest in Coding for AI and Data Science

Intuit Mailchimp