From 5cfbe169273c4c343e035ea344c0a337ee7b6ddb Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sat, 6 Apr 2024 09:09:43 +0200 Subject: [PATCH] Update README.md --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 2d36d83..a14137c 100644 --- a/README.md +++ b/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