-
Notifications
You must be signed in to change notification settings - Fork 18k
x/tools: unify directory scanning code between gorename, goimports, etc? #16427
New issue
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
Comments
It does take up to a minute for me to run gorename and the default output does I have a bunch of gcc sources and builds here and there under my src/GOPATH A normal run of gorename spits out somewhere around a thousand lines like the
EDIT: I temporarily moved the three gcc's which gorename was complaining about My (I'll revisit these numbers after I've had some sleep, a bit too tired for this atm) |
Hi! Thank you for maintaining go and making goimports fast. I really like it 💓 For what it's worth, I created https://github.com/haya14busa/gopkgs In my environment (
I implemented gopkgs by coping and modifing https://godoc.org/golang.org/x/tools/imports to export some interface, So I'm really +1 for this issue. I think it might be great to use the scanning code in Thanks |
I extracted gopathwalk out from goimports, so it's available for use if we want it. But with |
goimports has its own optimized directory scanning code.
Reportedly, gorename is quite a bit slower.
They should probably share code.
/cc @alandonovan
The text was updated successfully, but these errors were encountered: