Skip to content

pythoninthegrasses/cloudguru_golang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

System Tooling with Go

(Loosely) follows the A Cloud Guru course by Keith Thompson.

Setup

  • Set env vars in ~/.bashrc
# 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
curl -sSL https://git.io/g-install | sh -s

Hello, world!

Via Digital Ocean

# 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages