Top 0.1% dependent packages on proxy.golang.org
Top 0.1% dependent repos on proxy.golang.org
Top 8.4% forks on proxy.golang.org
Top 0.3% docker downloads on proxy.golang.org
proxy.golang.org : github.com/nishanths/predeclared
Command predeclared prints the names and locations of declarations in the given packages that have the same name as one of Go's predeclared identifiers (eg., int, string, delete, copy, append). The command line usage is: Run 'predeclared' without arguments for help. The '-q' boolean flag, if set, indicates to the command to check struct field names, interface methods, and method names — in addition to the default checks. (These checks aren't included by default since fields and method are always accessed by a qualifier—à la obj.Field—and hence are less likely to cause confusion when reading code even if they have the same name as a predeclared identifier.) The '-ignore' string flag can be used to specify predeclared identifiers to not report issues for. For example, to not report overriding of the predeclared identifiers 'new' and 'real', set the flag like so:
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/nishanths/predeclared
Keywords:
ast
, go
, linter
License: BSD-3-Clause
Latest release: about 3 years ago
First release: over 4 years ago
Namespace: github.com/nishanths
Dependent packages: 1,384
Dependent repositories: 9,054
Stars: 26 on GitHub
Forks: 5 on GitHub
Docker dependents: 244
Docker downloads: 3,261,421,355
See more repository details: repos.ecosyste.ms
Last synced: 3 days ago