diff --git a/01-get-started/Cheatsheet - Installation.pdf b/01-get-started/Cheatsheet - Installation.pdf index 572eff9..1740833 100644 Binary files a/01-get-started/Cheatsheet - Installation.pdf and b/01-get-started/Cheatsheet - Installation.pdf differ diff --git a/01-get-started/README.md b/01-get-started/README.md index e52e1e1..d9c658f 100644 --- a/01-get-started/README.md +++ b/01-get-started/README.md @@ -12,14 +12,15 @@ # 2 Install Git -1. Go to: https://git-scm.com/downloads -2. Select your OS and start downloading -3. Run the installer -4. Select VSCode as the default editor +1. Grab the installer: + 1. **Windows:** Go to: [https://gitforwindows.org](https://gitforwindows.org) + 2. **OS X & Linux:** Go to: [https://git-scm.com/downloads](https://git-scm.com/downloads) +2. Run the installer +3. Select VSCode as the default editor 1. **Windows**: 1. Enable all the checkboxes - 2. Select: _"Use Git from the Windows Command Prompt"_ - 3. Encodings: Select: _"Checkout as is..." option._ + 3. Select: _"Use Git from the Windows Command Prompt"_ + 4. Encodings: Select: _"Checkout as is..." option._ # 3 Install Go @@ -57,7 +58,7 @@ * If you don't want to use git bash, it's ok too. It depends on you. But note that, I'll be using bash commands mostly. Because, it allows more advanced commands as well. - * So, to use git bash, follow these steps: + * **So, to use git bash, follow these steps:** 1. Just search for git bash from the start bar 2. Or, if there's one, click on the icon on your desktop diff --git a/02-write-your-first-program/Cheatsheet - Write Your First Go Program.pdf b/02-write-your-first-program/Cheatsheet - Write Your First Go Program.pdf index beed0ba..773f0b0 100644 Binary files a/02-write-your-first-program/Cheatsheet - Write Your First Go Program.pdf and b/02-write-your-first-program/Cheatsheet - Write Your First Go Program.pdf differ diff --git a/02-write-your-first-program/README.md b/02-write-your-first-program/README.md index b032787..7ca138a 100644 --- a/02-write-your-first-program/README.md +++ b/02-write-your-first-program/README.md @@ -80,9 +80,23 @@ _See the next page..._ ## FIRST PROGRAM -* Under, `~/go/src/github.com/inancgumus/hello`, create a `main.go` file. -* And add the following code to it. -* Then, run it like this: `go run main.go` +* **Create directories:** + * **OS X & Linux (or git bash):** + * Create a new directory: + * `mkdir -p ~/go/src/yourname/hello` + * Go to that directory: + * `cd ~/go/src/yourname/hello` + + * **Windows:** + * Create a new directory: + * `mkdir c:\Go\src\yourname\hello` + * Go to that directory: + * `cd c:\Go\src\yourname\hello` + +* Create a new `code main.go` file under Visual Studio Code. +* And add the following code to it and save it. +* Then, return back to the command-line. + * Run it like this: `go run main.go` ```go package main