-
Notifications
You must be signed in to change notification settings - Fork 278
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
关于 import 的包分组写法的疑问 #14
Comments
这其实是习惯问题,如果是 import 块里面通过空行来分组,goland 可能会自动格式化。这个拆分的方法是,go sdk 的包一个块,第三方包一个块,项目内的引用一个块,这样看着比较清晰 |
goland 格式化的话也是根据库名做排序,这样一来标准库和自三方库自然而然的不会排在一起,即便是分组的话也确实是没有在其他 golang 开源系统中见到过分成多个 import 的写法。 |
fix commit and rollback codec bug #14
fix commit and rollback codec bug apache#14
为什么把 import 的包通过多个 import 来拆分呢?我在其他开源项目里没看到过这种写法,如果写成通过空行来分组是不是更好一些?如下:
The text was updated successfully, but these errors were encountered: