Installation¶
Prerequisites¶
- Go 1.22 or later
Install via curl (Recommended)¶
Install the pre-built binary with version info stamped via ldflags. Prefer this over go install which rebuilds from source and loses version/commit/buildDate stamping.
Or install a specific version:
The binary is placed in $GOPATH/bin (or $GOBIN if set). Make sure that directory is in your PATH.
Install via go install¶
Note:
go installrebuilds the binary from source. The version will show asv0.0.0 unknown unknownbecause ldflags are not applied duringgo install. Use the curl installer above for release binaries with proper version info.
The binary is placed in $GOPATH/bin (or $GOBIN if set). Make sure that directory is in your PATH.
Install via Docker¶
Pull and run a pre-built image:
Available from docker.io/padiazg/go-crap and ghcr.io/padiazg/go-crap.
Multi-arch images (linux/amd64, linux/arm64). Tags correspond to releases.
Build locally from source:
git clone https://github.com/padiazg/go-crap.git
cd go-crap
make docker-build
docker run --rm -v "$PWD:/code" go-crap:local scan
Build from Source¶
Install via Homebrew¶
Verify Installation¶
This prints the command help text, confirming the binary is working.