Download Go

The Go Programming Language is an open source project to make programmers more productive.

Go is a high-level general purpose programming language that is statically typed and compiled. It is known for the simplicity of its syntax and the efficiency of development that it enables by the inclusion of a large standard library supplying many needs for common projects. It is syntactically similar to C, but also has memory safety, garbage collection, structural typing, and CSP-style concurrency.

Download packages for Windows 64-bit, macOS, Linux, and more:

After downloading a binary release suitable for your system, please follow the installation instructions.

If you are building from source, follow the source installation instructions.

See the release history for more information about Go releases.

As of Go 1.13, the go command by default downloads and authenticates modules using the Go module mirror and Go checksum database run by Google. See https://proxy.golang.org/privacy for privacy information about these services and the go command documentation for configuration details including how to disable the use of these servers or use different ones.

Stable versions

Go installation

Select the tab for your computer's operating system below, then follow its installation instructions.

Linux

  1. Remove any previous Go installation by deleting the /usr/local/go folder (if it exists), then extract the archive you just downloaded into /usr/local, creating a fresh Go tree in /usr/local/go:
                                $ rm -rf /usr/local/go && tar -C /usr/local -xzf go1.24.3.linux-amd64.tar.gz
                            

    (You may need to run each command separately with the necessary permissions, as root or through sudo.)

    Do not untar the archive into an existing /usr/local/go tree. This is known to produce broken Go installations.

  2. Add /usr/local/go/bin to the PATH environment variable.

    You can do this by adding the following line to your $HOME/.profile or /etc/profile (for a system-wide installation):

                                export PATH=$PATH:/usr/local/go/bin
                            

    Note: Changes made to a profile file may not apply until the next time you log into your computer. To apply the changes immediately, just run the shell commands directly or execute them from source $HOME/.profile.

  3. Verify that you've installed Go by opening a command prompt and typing the following command:
                                $ go version
                            
  4. Confirm that the command prints the installed version of Go.

Mac

  1. Open the package file you downloaded and follow the prompts to install Go.

    The package installs the Go distribution to /usr/local/go. The package should put the /usr/local/go/bin directory in your PATH environment variable. You may need to restart any open Terminal sessions for the change to take effect.

  2. Verify that you've installed Go by opening a command prompt and typing the following command:
                                $ go version
                            
  3. Confirm that the command prints the installed version of Go.

Windows

  1. Open the MSI file you downloaded and follow the prompts to install Go.

    By default, the installer will install Go to Program Files or Program Files (x86). You can change the location as needed. After installing, you will need to close and reopen any open command prompts so that changes to the environment made by the installer are reflected at the command prompt.

  2. Verify that you've installed Go.
    • In Windows, click the Start menu.
    • In the menu's search box, type cmd, then press the Enter key.
    • In the Command Prompt window that appears, type the following command:
      $ go version
    • Confirm that the command prints the installed version of Go.

For other content on installing, you might be interested in:

Get started with Go

Visit the Getting Started tutorial to write some simple Go code. It takes about 10 minutes to complete. You can also explore a wealth of learning resources, including guided journeys, courses, books, and more.

Resources to start on your own In-Person Training
Guided learning journeys
Step-by-step tutorials to get your feet wet.
Online learning
Browse resources and learn at your own pace.
Featured books
Read through structured chapters and theories.
Cloud Self-paced labs
Jump in to deploying Go apps on GCP.
Ardan Labs
Offering customized on-site live training classes.
Gopher Guides
Customized In-person, remote, and online training classes. Training for Developers by Developers.
Boss Sauce Creative
Personalized or track-based Go training for teams.
Shiju Varghese
On-site classroom training on Go and consulting on distributed systems architectures, in India.

Documentation

Everything there is to know about Go. Get started on a new project or brush up for your existing Go code.

Go Wiki
A wiki maintained by the Go community.
User Manual
A complete introduction to building software with Go.
Effective Go
Tips for writing clear, performant, and idiomatic Go code.
Standard library
Reference documentation for Go's standard library.
Release Notes
Learn what's new in each Go release.

Try Go

Tour of Go
An interactive introduction to Go in four sections.
Go Playground
A place to write, run, and share Go code.
Go Packages
Browse all packages and symbols developed for Go.
Go by Example
Hands-on introduction to Go using annotated example programs.

Go Help


Apache/2.4.63 (Debian) Server at mirror.timecapsule.one Port 443