proxy.golang.org : github.com/golangci/goconst : v0.0.0-20180610141641-041c5f2b40f3
Package goconst finds repeated strings that could be replaced by a constant. There are obvious benefits to using constants instead of repeating strings, mostly to ease maintenance. Cannot argue against changing a single constant versus many strings. While this could be considered a beginner mistake, across time, multiple packages and large codebases, some repetition could have slipped in.
Registry -
Documentation -
Download -
JSON
purl: pkg:golang/github.com/golangci/[email protected]
Published:
Indexed:
Loading...
Readme
Loading...