Command | Description | Notes |
---|---|---|
go mod init moduleName | Initialize new module in current directory | |
go run main.go | Compile and run Go program | |
go build | Compile packages and dependencies | To run the bynary just run ./moduleName |
go get github.com/badoux/checkmail | Add dependencies to current module and install them | |
go mod tidy | Remove unused dependencies |