# Installing Go on Mac OS X and Configuring GOPATH

DevFeed: [Installing Go on Mac OS X and Configuring GOPATH](<https://devfeed.tech/articles/installing-go-gocode-gdb-and-liteide-22049.md>)

Original publisher: [Read original article](<https://www.ardanlabs.com/blog/2013/06/installing-go-gocode-gdb-and-liteide.html>)

Published: 2013-06-02T00:00:00Z

Content type: tutorial

Language: en

Sources: [William Kennedy](<https://devfeed.tech/sources/william-kennedy.md>)

Topics: [Go Language](<https://devfeed.tech/topics/go-language.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [Bash](<https://devfeed.tech/topics/bash.md>), [Terminal](<https://devfeed.tech/topics/terminal.md>), [Environment Variables](<https://devfeed.tech/topics/environment-variables.md>)

Tags: [ardan-labs](<https://devfeed.tech/tags/ardan-labs.md>), [blog](<https://devfeed.tech/tags/blog.md>), [environment-variables](<https://devfeed.tech/tags/environment-variables.md>), [go](<https://devfeed.tech/tags/go.md>), [go-programming](<https://devfeed.tech/tags/go-programming.md>), [go-projects](<https://devfeed.tech/tags/go-projects.md>), [golang](<https://devfeed.tech/tags/golang.md>), [guide](<https://devfeed.tech/tags/guide.md>), [installation](<https://devfeed.tech/tags/installation.md>), [mac](<https://devfeed.tech/tags/mac.md>), [mac-os](<https://devfeed.tech/tags/mac-os.md>), [programming](<https://devfeed.tech/tags/programming.md>), [terminal](<https://devfeed.tech/tags/terminal.md>)

## AI overview

A tutorial for installing Go on Mac OS X, checking the installation, configuring GOPATH, and installing basic packages. It also references Windows installation guidance and related editors.

## Source excerpt

Check out my new installtion document: External resource on ardanlabs.com: https://www.ardanlabs.com/blog/2016/05/installing-go-and-your-workspace.html I removed the sections about gocode and GDB. These are not necessary any longer. I also added links for more editors. Windows This is a great post by Wade Wegner for installing Go on your Windows Machine: External resource on wadewegner.com: http://www.wadewegner.com/2014/12/easy-go-programming-setup-for-windows/ Mac OS X The following instructions will guide you through installing Go on your Mac. Step 1: Download Go Open your favorite browser and go to the following website: External resource on golang.org: http://golang.org/dl/ Screen Shot This will show you all the latest builds for the different operating systems. Darwin is the name for the Mac OS. Download the installer package for your OS version and architecture. Once downloaded go to your Downloads folder in Finder and double click on the pkg file to start the installation. The installation will put Go in /usr/local/go. Once the installation is complete you will want to check the installation. Note: Moving forward we will be using both Terminal and Finder. It helps to be able to see all the files in Finder. Finder by default will not show you everything that is on your hard drive. To show all files in Finder: Open a Terminal session. If you don't know where the Terminal program is go to your Applications folder in Finder and then Utilities. Click on Terminal and a bash shell command window will open. Execute the following commands in Terminal. defaults write com.apple.finder AppleShowAllFiles TRUE killall Finder The killall Finder will reload the Finder program and now you can see all the files. Step 2: Check Installation Open a Terminal session and type the following command go version You should see the following if everything installed correctly go version go1.5 darwin/amd64 Now type the