mirror of
https://github.com/Crocmagnon/fatcontext.git
synced 2024-12-24 23:11:56 +01:00
Update README.md
This commit is contained in:
parent
4c2ad68b8d
commit
5cfbe16927
1 changed files with 11 additions and 0 deletions
11
README.md
11
README.md
|
@ -3,6 +3,17 @@
|
|||
`fatcontext` is a Go linter which detects potential fat contexts in loops.
|
||||
They can lead to performance issues, as documented here: https://gabnotes.org/fat-contexts/
|
||||
|
||||
## Installation / usage
|
||||
|
||||
`fatcontext` is available in `golangci-lint` since v1.58.0.
|
||||
|
||||
```bash
|
||||
go install github.com/Crocmagnon/fatcontext/cmd/fatcontext@latest
|
||||
fatcontext ./...
|
||||
```
|
||||
|
||||
There are no specific configuration options or custom command-line flags.
|
||||
|
||||
## Example
|
||||
|
||||
```go
|
||||
|
|
Loading…
Reference in a new issue