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

希望可以支持 常量变量 类型的快速注释 #39

Open
Cathay-Chen opened this issue Aug 2, 2022 · 3 comments
Open

希望可以支持 常量变量 类型的快速注释 #39

Cathay-Chen opened this issue Aug 2, 2022 · 3 comments

Comments

@Cathay-Chen
Copy link

No description provided.

@Cathay-Chen Cathay-Chen changed the title 希望可以支持 常量 希望可以支持 常量变量 类型的快速注释 Aug 2, 2022
@loveinsky100
Copy link
Owner

这两种需要做什么样的注释支持?不能直接 // ?

@Cathay-Chen
Copy link
Author

goland 标准的注释格式,是需要默认把变量名或常量名称自动放在注释开头的,例如:

// defaultTCPKeepAlive is a default constant value for TCPKeepAlive times
// See golang.org/issue/31510
const (
	defaultTCPKeepAlive = 15 * time.Second
)

@Cathay-Chen
Copy link
Author

Go 官方的包都是按照这个标准进行注释的

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