Import Styling #184
Replies: 3 comments 3 replies
-
We currently just use One of the enjoyable things in Go is to have only one formatter. You can change to import order but it must still be compatible with the formatters. |
Beta Was this translation helpful? Give feedback.
-
I consider this as the norm now. goimport can be easily configured with the -local argument gopls also supports it via formating.local settings. I tend to use So, yes I support your suggestion. But OSS is a matter of discussion. Thanks for raising the point, I was also surprised to see fuego using a "mixed up import". |
Beta Was this translation helpful? Give feedback.
-
Closing the discussion as #186 has addressed my concern. |
Beta Was this translation helpful? Give feedback.
-
In some of the Go projects, I have worked on, we have grouped the imports by their source. For example,
So, the import section for
fuego/cmd/fuego/commands/controller.go
which currently looks like:would then be written as:
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions