Skip to content
cheatsheet
home
/
cv
/
weblog
/
cheatsheet
/
proxy
/
vpn
/
status
/
links
EN
RU
☾
New version available
reload
×
cheatsheet
/
go
/
Vendor dependencies
Vendor dependencies
go
Copy all module dependencies into the vendor/ directory
go mod vendor
⎘ copy
#go
#ci
more go
all 10 commands →
CPU profiling
go test -cpuprofile=cpu.prof -bench=. ./... && go tool pprof cpu.prof
List all packages
go list ./...
Format all code
gofmt -w .
Static analysis with vet
go vet ./...
Build binary for Linux
GOOS=linux GOARCH=amd64 go build -o bin/app ./cmd/app