diff --git a/README.md b/README.md index c671eb5..d575347 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ While this could be considered a beginner mistake, across time, multiple package ### Get Started - $ go get github.com/jgautheron/goconst/cmd/goconst + $ go install github.com/jgautheron/goconst/cmd/goconst@latest $ goconst ./... ### Usage @@ -40,6 +40,7 @@ Examples: goconst -ignore "yacc|\.pb\." $GOPATH/src/github.com/cockroachdb/cockroach/... goconst -min-occurrences 3 -output json $GOPATH/src/github.com/cockroachdb/cockroach goconst -numbers -min 60 -max 512 . + goconst -min-occurrences 5 $(go list -m -f '{{.Dir}}') ``` ### Other static analysis tools diff --git a/cmd/goconst/main.go b/cmd/goconst/main.go index 8ec971a..6aefbb1 100644 --- a/cmd/goconst/main.go +++ b/cmd/goconst/main.go @@ -39,6 +39,7 @@ Examples: goconst -ignore "yacc|\.pb\." $GOPATH/src/github.com/cockroachdb/cockroach/... goconst -min-occurrences 3 -output json $GOPATH/src/github.com/cockroachdb/cockroach goconst -numbers -min 60 -max 512 . + goconst -min-occurrences 5 $(go list -m -f '{{.Dir}}') ` var (