Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 624 Bytes

File metadata and controls

30 lines (18 loc) · 624 Bytes

gools

Simple and portable tools written in Go.

The following commands work for all subdirectories.

Build

go build -ldflags "-w -s" -trimpath

Static build

CGO_ENABLED=0 go build -ldflags "-w -s" -trimpath

Cross-compilation

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

License

BSD 3-Clause License. Check LICENSE.