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

lint: better import order group #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

xpzouying
Copy link

import group 进行区域区分,分别分为 3 部分:

  1. go sdk 库
  2. 当前库,即 gin-template/xxx package
  3. 第三方依赖库

大部分代码最佳规范都有做相应的 import group 标准:
uber-go 参考实践:https://github.com/uber-go/guide/blob/master/style.md#import-group-ordering

import group 进行区域区分,分别分为 3 部分:
1. go sdk 库
2. 当前库,即 gin-template/xxx package
3. 第三方依赖库

大部分代码最佳规范都有做相应的 import group 标准:
uber-go 参考实践:https://github.com/uber-go/guide/blob/master/style.md#import-group-ordering
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 this pull request may close these issues.

1 participant