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

golang: type BootstrapList []*ent.Bootstrap going to the other case #20

Closed
godcong opened this issue Sep 9, 2021 · 3 comments
Closed

Comments

@godcong
Copy link

godcong commented Sep 9, 2021

type BootstrapList []*ent.Bootstrap

want

//BootstrapList xxx
type BootstrapList []*ent.Bootstrap

get

//
type BootstrapList []*ent.Bootstrap

ps:I hope the comments generated by default can be checked by the code inspection tool. (like: golink,revive)
but,some templates need to be modified.

@godcong godcong changed the title type BootstrapList []*ent.Bootstrap going to the other case golang: type BootstrapList []*ent.Bootstrap going to the other case Sep 9, 2021
@loveinsky100
Copy link
Owner

type去定义一个新类型,目前模版逻辑未识别这种语句,走了Other的模版,所以输出 “//”。对于这种语句或者其他的比如const,var等语句有在考虑是否支持,因为目前模版分类非常多了,对于过多的配置反而不易使用。
对于默认模版的golint检测,我这边目前的确遇到了一些问题,后续会调整默认模版。

@godcong
Copy link
Author

godcong commented Sep 9, 2021

如何添加:定义一个新类型?

@loveinsky100
Copy link
Owner

#39 会在下个版本支持

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

No branches or pull requests

2 participants