https://github.com/pythoninthegrass/cloudguru_golang
https://github.com/pythoninthegrass/cloudguru_golang
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pythoninthegrass/cloudguru_golang
- Owner: pythoninthegrass
- Created: 2021-07-26T04:47:58.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-07-26T04:49:04.000Z (almost 5 years ago)
- Last Synced: 2025-01-11T16:50:21.404Z (over 1 year ago)
- Language: Go
- Size: 1000 Bytes
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# System Tooling with Go
(Loosely) follows the [A Cloud Guru](https://acloud.guru/overview/cc84a84e-c461-4935-90a2-f2127431b855) course by Keith Thompson.
## Setup
* Set env vars in `~/.bashrc`
```bash
# PATH
export GOPATH="${HOME}/go"
export GOROOT="${HOME}/.go"
export PATH="$GOPATH/bin:$PATH"
# go
# https://stackoverflow.com/a/67930263
export GO111MODULE=auto
```
* Install `g` then select latest go version
```bash
curl -sSL https://git.io/g-install | sh -s
```
## Hello, world!
Via [Digital Ocean](https://www.digitalocean.com/community/tutorials/how-to-build-and-install-go-programs)
```bash
# Run with temp binary
$ go run hello.go
Hello, World!
# Compile for realsies
$ go build -o hello
$ ./hello
Hello, World!
# Move to compiled directory
$ mv hello ../bin
```