---
# System prepended metadata

title: Go Tutorial

---

# Go Tutorial

Open Source Chicago - Jam Session 2019-11-09

Repo: https://github.com/jdolitsky/oscdemo

https://en.wikipedia.org/wiki/Go_(programming_language)

## Installing Go

Official: https://golang.org/doc/install

Mac guide: https://sourabhbajaj.com/mac-setup/Go/README.html

## Why do people use Go?

vs. Python, Ruby, Node.js?

See https://medium.com/@carloslfu/5-reasons-to-use-golang-b7036b395f27

* (add your reason)premee


## Simple program

```python
def plusFive(a):
    if typeof(a) == string:
    return a + 5

plusFive(5) # 10 

plusFive("five")
```

main.go
```go
package main

import "fmt"

func plusFive(a int) int {
    return a + 5
}


func main() {
    plusFive("five")
}
```

## Layout for projects

There are no "rules" but some people have opinions: https://github.com/golang-standards/project-layout