This repository contains workshop material for the 2016 18F IRL Golang Workshop
This Workshop will go through:
- Go Basics
- Creating a web server
- Creating a simple web health checker
- Using a debugger
- Intro to Go testing
For the Table of Contents, refer to here
# change your directory into where ever you normally store your code
# Create a Go workspace.
mkdir golang_workshop_ws
cd golang_workshop_ws
# clone the repo into the correct location of the workspace
git clone https://github.com/18F/golang_workshop_irl_2016.git src/github.com/18F/golang_workshop_irl_2016
# run the setup script
src/github.com/18F/golang_workshop_irl_2016/scripts/goup.sh && source $HOME/.gvm/scripts/gvm
# use this section of commands every time you want to start / resume this tutorial
# make sure you are in your workspace.
# establish go workspace formally
export GOPATH=$(pwd)
# change directory into the location of the cloned repo
cd src/github.com/18F/golang_workshop_irl_2016/
# start the ide and download / update tools
scripts/goprojectup.sh
If these steps look a little foreign, it's a great time to dive into Chapter 01
# to remove just Go related stuff:
scripts/godown.sh
# to remove just Go related stuff and the IDE:
scripts/godown.sh -a