Skip to content

Installation

gohawk requires Go 1.26 or newer.

Install the CLI

Install the latest release with Go:

Terminal window
go install github.com/kojah/gohawk@latest

Go 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:

Terminal window
gohawk -V

Reinstall 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:

Terminal window
gohawk ./...

gohawk can also run as a go vet tool:

Terminal window
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.