From f96a7508e47ad762daaa8adc1503d609e2bc4041 Mon Sep 17 00:00:00 2001 From: Puru <40428133+tuladhar-p@users.noreply.github.com> Date: Thu, 17 Jan 2019 10:55:49 +0545 Subject: [PATCH] Update README Add section showing how to setup and run tutorial example codes --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 28eed14..745a87f 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,15 @@ This repo should not be used as an example of how to organise your project or st source files. For a better example of organisation and structure, clone the [Granitic source repository](https://github.com/graniticio/granitic) +## How to run example code + +``` +GOPATH=$(go env GOPATH) +git clone https://github.com/benhalstead/gotraining $GOPATH/src/github.com/benhalstead/gotraining +cd $GOPATH/src/github.com/benhalstead/gotraining +go run concurrency/goroutines.go +``` + The following is the suggested reading order: ## Foundations