Skip to content

Ypnose/gools

Repository files navigation

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.

About

Simple and portable tools written in Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published