From 5b98893ac697a21b6fda7c6f13dac67798ff5e62 Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Sun, 28 May 2017 21:32:04 +0000 Subject: [PATCH] added installation info to hello --- sheets/_go/hello | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sheets/_go/hello b/sheets/_go/hello index 155802b..7ab1c33 100644 --- a/sheets/_go/hello +++ b/sheets/_go/hello @@ -1,4 +1,12 @@ // file: hello.go +// to install go: +// download go from https://golang.org/dl/ +// extract it somewhere (say to $HOME/go1.X) +// export GOROOT=$HOME/go1.X +// export PATH=$PATH:$GOROOT/bin +// to compile: go build hello.go +// to run: go run hello.go +// or ./hello package main @@ -8,4 +16,4 @@ func main() { fmt.Println("Hello Go") } -// to run: $ go run hello.go +// to run: