Skip to content

Commit

Permalink
website: make installation command more visible
Browse files Browse the repository at this point in the history
Closes: gh-1594 [via git-merge-pr]
  • Loading branch information
egonelbre authored and dominikh committed Sep 20, 2024
1 parent dbc818c commit ddff81c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion website/content/docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ aliases:

## Installation

Beginning with Go 1.17, the simplest way of installing Staticcheck is by running `go install honnef.co/go/tools/cmd/staticcheck@latest`.
Beginning with Go 1.17, the simplest way of installing Staticcheck is by running:

```
go install honnef.co/go/tools/cmd/staticcheck@latest
```

This will install the latest version of Staticcheck to `$GOPATH/bin`. To find out where `$GOPATH` is, run `go env GOPATH`.
Instead of `@latest`, you can also use a specific version, such as `@2020.2.1`.

Expand Down

0 comments on commit ddff81c

Please sign in to comment.