refactor: finish moving ssh-* scripts to own installers
[webi-installers/.git] / golang / README.md
1 ---
2 title: Go
3 homepage: https://golang.org
4 tagline: |
5   Go makes it easy to build simple, reliable, and efficient software.
6 ---
7
8 To update or switch versions, run `webi golang@stable` (or `@v1.16`, `@beta`,
9 etc).
10
11 ## Cheat Sheet
12
13 > Go is designed, through and through, to make Software Engineering easy. It's
14 > fast, efficient, reliably, and something you can learn in a weekend. If you
15 > subscribe to [_The Zen of Python_](https://www.python.org/dev/peps/pep-0020/),
16 > you'll [love](https://go-proverbs.github.io/) >
17 > [Go](https://www.youtube.com/watch?v=PAAkCSZUG1c).
18
19 ### Hello World
20
21 ```bash
22 mkdir -p hello/
23 pushd hello/
24 ```
25
26 ```bash
27 cat << EOF >> main.go
28 package main
29
30 import (
31   "fmt"
32 )
33
34 func main () {
35   fmt.Println("Hello, World!")
36 }
37 EOF
38 ```
39
40 ```bash
41 go fmt ./...
42 go build .
43 ./hello
44 > Hello, World!
45 ```