Update README.md

This commit is contained in:
Gabriel Augendre 2024-04-06 09:09:43 +02:00 committed by GitHub
parent 4c2ad68b8d
commit 5cfbe16927
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,6 +3,17 @@
`fatcontext` is a Go linter which detects potential fat contexts in loops. `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/ 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 ## Example
```go ```go