From f8aac2c332d0a6d1e93ce6102fb946f451351a16 Mon Sep 17 00:00:00 2001 From: Inanc Gumus Date: Sat, 11 May 2019 16:23:55 +0300 Subject: [PATCH] update: ubuntu installation doc --- 01-get-started/ubuntu-installation.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/01-get-started/ubuntu-installation.md b/01-get-started/ubuntu-installation.md index 4b9567d..58c599f 100644 --- a/01-get-started/ubuntu-installation.md +++ b/01-get-started/ubuntu-installation.md @@ -75,7 +75,7 @@ There are two ways: go get -v -u golang.org/x/tools/... ``` -## Install VSCode +## Install VSCode (Optional) Note: You may use another coding editor if you like. However, the course uses Visual Studio Code (VSCode). @@ -86,10 +86,10 @@ Note: You may use another coding editor if you like. However, the course uses Vi ## OPTIONAL STEP: -1. Create a hello.go inside `$GOPATH/src` +1. Create a hello.go file in a new directory but anywhere outside of `$GOPATH` ```bash - cat < $GOPATH/src/hello.go + cat < hello.go package main import "fmt" @@ -100,10 +100,9 @@ Note: You may use another coding editor if you like. However, the course uses Vi EOF ``` -2. Go to Go source directory and run our sample program +2. Run the program ```bash - cd $GOPATH/src go run hello.go It should print: hello gopher! ```