Golang
Remove Debugging Information
go build -ldflags "-w -s"Cross Compilation
GOOS="linux" GOARCH="amd64" go build hello.goLast updated
go build -ldflags "-w -s"that will remove the debugging information and shrink the binary size by ~30%.
GOOS -> Operating system
GOARCH -> Architecture
GOOS="linux" GOARCH="amd64" go build hello.goLast updated