golang
"Go is an open source programming language that makes it easy to build simple, reliable, and efficient software." - https://golang.org/
Golang keeps to a 6-month minor release cadence. See https://golang.org/doc/devel/release.html
Tips and examples
- Default
GOPATH
is${HOME}/go
on unix systems. - See a bunch of other defaults with
go env
View default go environment
go env
Build code found on github
go get github.com/solarkennedy/uq
go build github.com/solarkennedy/uq
With newer golang versions, you can simply go install github.com/solarkennedy/uq@latest
Show all modules used by a golang project
This will list all dependencies recursively in two columns with the library on the left and its direct dependencies on the right.
cd "$SOURCE_REPO"
go mod graph
Links
- https://go.dev/learn
- https://golang.org/cmd/go
- https://labix.org/gopkg.in
- https://play.golang.org
- https://www.programming-books.io/essential/go/
- https://thewhitetulip.gitbook.io/bo: "This is an easy to understand example based tutorial aimed at those who know a little of Go and nothing of webdev and want to learn how to write a webserver in Go."
- https://changelog.com/gotime: "Your source for diverse discussions from around the Go community"
- https://www.youtube.com/channel/UC_BzFbxG2za3bp5NRRRXJSw: justforfunc YT series about programming in Go
- https://algorithmswithgo.com
- https://gobyexample.com
- https://go.dev/wiki/
- https://www.youtube.com/playlist?list=PLoILbKo9rG3skRCj37Kn5Zj803hhiuRK6: Golang class vids