update: cheatshets
This commit is contained in:
Binary file not shown.
@ -12,14 +12,15 @@
|
|||||||
|
|
||||||
# 2 Install Git
|
# 2 Install Git
|
||||||
|
|
||||||
1. Go to: https://git-scm.com/downloads
|
1. Grab the installer:
|
||||||
2. Select your OS and start downloading
|
1. **Windows:** Go to: [https://gitforwindows.org](https://gitforwindows.org)
|
||||||
3. Run the installer
|
2. **OS X & Linux:** Go to: [https://git-scm.com/downloads](https://git-scm.com/downloads)
|
||||||
4. Select VSCode as the default editor
|
2. Run the installer
|
||||||
|
3. Select VSCode as the default editor
|
||||||
1. **Windows**:
|
1. **Windows**:
|
||||||
1. Enable all the checkboxes
|
1. Enable all the checkboxes
|
||||||
2. Select: _"Use Git from the Windows Command Prompt"_
|
3. Select: _"Use Git from the Windows Command Prompt"_
|
||||||
3. Encodings: Select: _"Checkout as is..." option._
|
4. Encodings: Select: _"Checkout as is..." option._
|
||||||
|
|
||||||
# 3 Install Go
|
# 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.
|
* 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
|
1. Just search for git bash from the start bar
|
||||||
2. Or, if there's one, click on the icon on your desktop
|
2. Or, if there's one, click on the icon on your desktop
|
||||||
|
|
||||||
|
Binary file not shown.
@ -80,9 +80,23 @@ _See the next page..._
|
|||||||
|
|
||||||
## FIRST PROGRAM
|
## FIRST PROGRAM
|
||||||
|
|
||||||
* Under, `~/go/src/github.com/inancgumus/hello`, create a `main.go` file.
|
* **Create directories:**
|
||||||
* And add the following code to it.
|
* **OS X & Linux (or git bash):**
|
||||||
* Then, run it like this: `go run main.go`
|
* 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
|
```go
|
||||||
package main
|
package main
|
||||||
|
Reference in New Issue
Block a user