Commands
Updated: September 28, 2024
CLI commands for Golang.
go build // produces a single executble file named after project
go run // build and run program straight from source code - no output file generated
go fmt -w main.go // automatically format source code flag write reults to source instead on console
go fix // rewrite programs that use old APIs to use newer ones
go get <package> // import dependency packages
go imports -w main.go // detects missing packages and updates import statement