-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from ldez/feat/documentation
doc: improve readme
- Loading branch information
Showing
2 changed files
with
60 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,66 @@ | ||
# usestdlibvars | ||
|
||
The Golang linter that detect possibility use variables/constants from stdlib | ||
A linter that detect the possibility to use variables/constants from the Go standard library. | ||
|
||
## Install | ||
|
||
```console | ||
``` | ||
go install github.com/sashamelentyev/usestdlibvars | ||
``` | ||
|
||
## Usage | ||
|
||
```console | ||
$ usestdlibvars -h | ||
usestdlibvars: Detect the possibility to use constants/variables from the stdlib. | ||
|
||
Usage: usestdlibvars [-flag] [package] | ||
|
||
|
||
Flags: | ||
-V print version and exit | ||
-all | ||
no effect (deprecated) | ||
-c int | ||
display offending line with this many lines of context (default -1) | ||
-cpuprofile string | ||
write CPU profile to this file | ||
-crypto-hash | ||
suggest the use of crypto.Hash | ||
-debug string | ||
debug flags, any subset of "fpstv" | ||
-fix | ||
apply all suggested fixes | ||
-flags | ||
print analyzer flags in JSON | ||
-http-method | ||
suggest the use of http.MethodXX (default true) | ||
-http-status-code | ||
suggest the use of http.StatusXX (default true) | ||
-json | ||
emit JSON output | ||
-memprofile string | ||
write memory profile to this file | ||
-source | ||
no effect (deprecated) | ||
-tags string | ||
no effect (deprecated) | ||
-test | ||
indicates whether test files should be analyzed, too (default true) | ||
-time-layout | ||
suggest the use of time.Layout | ||
-time-month | ||
suggest the use of time.Month | ||
-time-weekday | ||
suggest the use of time.Weekday | ||
-trace string | ||
write trace log to this file | ||
-v no effect (deprecated) | ||
|
||
``` | ||
|
||
## Examples | ||
|
||
```bash | ||
usestdlibvars ./... | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters