Getting started with Go language
technical go programmingDevelopment environment for Go language
Just then I spent about 15 minutes setting up my Mac as a development machine for go language. This is a concise list of steps to follow to setup a similar environment.
Steps to perform:
- Download the latest Go distribution from Go language website
- Open the downloaded package and follow the instructions
- The go runtime is installed at
/usr/local/go/bin
- Edit
~/.bash_profile
and make following changes
# Configuration for GO language
export GOPATH=~/Projects/go-workspace # this will be the parent directory of all your GO projects
# Ensure go binaries are in the PATH
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
- Done! You should be good to Go…