v0.0.3
Hand's on go tooling setup
Prerequisite
You must have git
and docker
installed on your machine.
Manual installation
- Install of Visual Studio Code,
- Install of Go Lang plugin in VSCode,
- Install Golang.
- Pull needed docker images
docker pull golang:1.7.3-alpine
docker pull mongo:3.3
Workspace installation
- Create GOPATH tree structure,
.
├── bin
├── pkg
└── src
└── github.com
└── Sfeir
- Download go tools for Visual Studio Code,
go get -u -v github.com/nsf/gocode
go get -u -v github.com/rogpeppe/godef
go get -u -v github.com/golang/lint/golint
go get -u -v github.com/lukehoban/go-outline
go get -u -v sourcegraph.com/sqs/goreturns
go get -u -v golang.org/x/tools/cmd/gorename
go get -u -v github.com/tpng/gopkgs
go get -u -v github.com/newhook/go-symbols
go get -u -v golang.org/x/tools/cmd/guru
go get -u -v github.com/cweill/gotests/...
- Download the git repository of hand's on go and checkout the
start
branch.
git clone -b start [email protected]:Sfeir/handsongo.git workspace/src/github.com/Sfeir/handsongo
as script for linux/macos users
#!/bin/bash
mkdir -p workspace/src/github.com/Sfeir
mkdir -p workspace/bin
mkdir -p workspace/pkg
export GOPATH=$(pwd)/workspace
go get -u -v github.com/nsf/gocode
go get -u -v github.com/rogpeppe/godef
go get -u -v github.com/golang/lint/golint
go get -u -v github.com/lukehoban/go-outline
go get -u -v sourcegraph.com/sqs/goreturns
go get -u -v golang.org/x/tools/cmd/gorename
go get -u -v github.com/tpng/gopkgs
go get -u -v github.com/newhook/go-symbols
go get -u -v golang.org/x/tools/cmd/guru
go get -u -v github.com/cweill/gotests/...
git clone -b start [email protected]:Sfeir/handsongo.git workspace/src/github.com/Sfeir/handsongo
Offline package
- Take the package
handsongo-<OS>.zip
and unzip it, - Go in this folder and read the
README.md
file.
Package available for linux
, and macos
.
Warning for Windows users
Please use a Linux VM with virtual box instead.
VM Image provided the 2 handsongo-vm.*
files.
- unzip the 2 parts archive to retrieve
handsongo_start.ova
file - check md5 sum of image (optional)
- import
ova
image in VirtualBox - start image (handsongo/handsongo for login)
Need Docker images?
- Take the package
handsongo-docker.zip
and unzip it, - Go in this folder and read the
README.md
file.