Skip to content

lint: better import order group#12

Open
xpzouying wants to merge 1 commit intosongquanpeng:mainfrom
xpzouying:better-lint-style
Open

lint: better import order group#12
xpzouying wants to merge 1 commit intosongquanpeng:mainfrom
xpzouying:better-lint-style

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