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 Go import auto formatting #195

Closed
arcticicestudio opened this issue Mar 30, 2019 · 0 comments
Closed

Use goimports for Go import auto formatting #195

arcticicestudio opened this issue Mar 30, 2019 · 0 comments

Comments

@arcticicestudio
Copy link
Owner

To improve the formatting and adhere to Arctic Ice Studio's Go code style `goimports will be used to automatically format imports:

  • Only use one import declaration.
  • Use of the -local flag to put imports local imports after 3rd-party packages.
  • Move all stdlib imports into one group.
  • Sort all imports.
@arcticicestudio arcticicestudio added this to the 0.1.0 milestone Mar 30, 2019
@arcticicestudio arcticicestudio self-assigned this Mar 30, 2019
@arcticicestudio arcticicestudio removed their assignment Mar 30, 2019
arcticicestudio added a commit that referenced this issue Mar 30, 2019
To improve the formatting and adhere to Arctic Ice Studio's Go code
style `goimports` (1) is now used to automatically format imports:

- Only use one import declaration.
- Use of the `-local` flag to put imports local imports after 3rd-party packages.
- Move all stdlib imports into one group.
- Sort all imports.

References:
  (1) godoc.org/golang.org/x/tools/cmd/goimports

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

No branches or pull requests

1 participant