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.10-alpine
docker pull mongo:3.4
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/ramya-rao-a/go-outline \
github.com/acroca/go-symbols \
github.com/nsf/gocode \
github.com/rogpeppe/godef \
golang.org/x/tools/cmd/godoc \
github.com/zmb3/gogetdoc \
github.com/golang/lint/golint \
github.com/fatih/gomodifytags \
github.com/uudashr/gopkgs/cmd/gopkgs \
golang.org/x/tools/cmd/gorename \
sourcegraph.com/sqs/goreturns \
github.com/cweill/gotests/... \
golang.org/x/tools/cmd/guru \
github.com/josharian/impl
- 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/ramya-rao-a/go-outline \
github.com/acroca/go-symbols \
github.com/nsf/gocode \
github.com/rogpeppe/godef \
golang.org/x/tools/cmd/godoc \
github.com/zmb3/gogetdoc \
github.com/golang/lint/golint \
github.com/fatih/gomodifytags \
github.com/uudashr/gopkgs/cmd/gopkgs \
golang.org/x/tools/cmd/gorename \
sourcegraph.com/sqs/goreturns \
github.com/cweill/gotests/... \
golang.org/x/tools/cmd/guru \
github.com/josharian/impl
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.
Need Docker images?
- Take the package
handsongo-docker.zip
and unzip it, - Go in this folder and read the
README.md
file.