We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Current we are checking the package name of prometheus or promauto, actually this is not very necessary. We can just check the Method being called.
prometheus
promauto
for _, pkg := range file.Imports { switch pkg.Path.Value { case `"github.com/prometheus/client_golang/prometheus"`: if pkg.Name != nil { name = pkg.Name.Name } else { name = "prometheus" } case `"github.com/prometheus/client_golang/prometheus/promauto"`: if pkg.Name != nil { promautoName = pkg.Name.Name } else { promautoName = "promauto" } } }
The text was updated successfully, but these errors were encountered:
This is done, close.
Sorry, something went wrong.
No branches or pull requests
Current we are checking the package name of
prometheus
orpromauto
, actually this is not very necessary. We can just check the Method being called.The text was updated successfully, but these errors were encountered: