Skip to content

Commit b329728

Browse files
Add golangci-lint example
1 parent aaf1ec6 commit b329728

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,21 @@ A linter that detect the possibility to use variables/constants from the Go stan
66

77
## Install
88

9+
### `go install`
10+
911
```bash
1012
go install github.com/sashamelentyev/usestdlibvars@latest
1113
```
1214

15+
### `golangci-lint`
16+
17+
`usestdlibvars` is already integrated with
18+
[golangci-lint](https://github.com/golangci/golangci-lint).
19+
1320
## Usage
1421

22+
### Binary
23+
1524
```console
1625
$ usestdlibvars -h
1726
usestdlibvars: A linter that detect the possibility to use variables/constants from the Go standard library.
@@ -70,6 +79,12 @@ Flags:
7079
-v no effect (deprecated)
7180
```
7281

82+
### `golangci-lint`
83+
84+
```console
85+
golangci-lint run --disable-all --enable usestdlibvars
86+
```
87+
7388
## Examples
7489

7590
```go

0 commit comments

Comments
 (0)