Skip to content
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

Use goimports for import grouping #724

Closed
enj opened this issue Jan 27, 2023 · 0 comments · Fixed by #809
Closed

Use goimports for import grouping #724

enj opened this issue Jan 27, 2023 · 0 comments · Fixed by #809

Comments

@enj
Copy link
Member

enj commented Jan 27, 2023

I have this mostly automated:

goimports does stdlib, 3rd-party, and then local.

I have goland set to run goimports -local github.com/Azure/azure-workload-identity -w <filename> on save.

// LocalPrefix is a comma-separated string of import path prefixes, which, if
// set, instructs Process to sort the import paths with the given prefixes
// into another group after 3rd-party packages.
var LocalPrefix string

Originally posted by @enj in #722 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant