Simple and portable tools written in Go.
The following commands work for all subdirectories.
go build -ldflags "-w -s" -trimpath
CGO_ENABLED=0 go build -ldflags "-w -s" -trimpath
go tool dist list
# For an ARM64 binary running on Linux
GOOS=linux GOARCH=arm64 go build -ldflags "-w -s" -trimpath
Warning
For Raspberry Pi 1 compatible binary, GOARM
needs to be specified
GOOS=linux GOARCH=arm GOARM=5 go build -ldflags "-w -s" -trimpath
BSD 3-Clause License. Check LICENSE.