Installation
gohawk requires Go 1.26 or newer.
Install the CLI
Install the latest release with Go:
go install github.com/kojah/gohawk@latestGo writes the executable to GOBIN, or to GOPATH/bin when GOBIN is not
set. Make sure that directory is included in your PATH.
Verify the installation:
gohawk -VReinstall gohawk after upgrading the Go toolchain used by the project. Go analysis binaries must be built with a toolchain at least as new as the code and standard library they analyze.
Run gohawk
Run the default analyzer profile across the current module:
gohawk ./...gohawk can also run as a go vet tool:
go vet -vettool="$(command -v gohawk)" ./...To include gohawk in a custom golangci-lint binary instead, follow the golangci-lint integration guide.
Continue to Configuration to select analyzers, enable opt-in checks, and configure suppressions.