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
x/tools/cmd/goimports: allow multiple -local flags #19188
Comments
Seems like your company is big enough now to warrant having a internal fork of goimports with your desired policy. I forgot about the But sure. Since it's already there, feel free to make it support comma-separated value or something. That's probably the least invasive. |
I'm curious, why do you think that? I do run it manually quite often. |
I'm pretty sure that almost all users run it automatically from their editor on save, and not by hand. |
Sure, but editors can still make use of these options if I understand correctly. |
CL https://golang.org/cl/37592 mentions this issue. |
Change https://golang.org/cl/85397 mentions this issue: |
next level for this would be to fix the ordering more strictly based on the comma-separated list, but good enough for now. Thank you for this feature! |
My company use flowing imports schema:
goimports perfectly supports such imports schema by using -local flag.
But our company acquire some other company and they code also become local to us, e.g. we want to use flowing imports schema:
Can we add multiple -local flags support to goimports?
If no objections I will create CL.
The text was updated successfully, but these errors were encountered: