An open API service indexing awesome lists of open source software.

https://github.com/briangershon/setup-go

OSX setup instructions for my Go (golang) development environment
https://github.com/briangershon/setup-go

Last synced: about 2 months ago
JSON representation

OSX setup instructions for my Go (golang) development environment

Awesome Lists containing this project

README

        

Setup Go
========

This is how I setup my Go development environment on OSX.

Steps
-----

For OSX, `brew install golang`

`mkdir ~/go`

Add environmental variables to your profile (e.g. `~/.bash_profile`):

export GOPATH="$HOME/go"
export PATH="$PATH:$HOME/go/bin"

Setup Git to support private repos (use `ssh` instead of `https`):

git config --global url."[email protected]:".insteadOf "https://github.com/"

Install golint

go get -u github.com/golang/lint/golint

Setup Atom Editor

cd ~/go
atom # this loads Atom with Go env vars

# install `go-plus` plugin

Setup go dep

For OSX `brew install dep` or `go get -u github.com/golang/dep/cmd/dep`