We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
下面这个例子,我使用 go vet 命令,并没有提示异常,这个规范是不是要自定义,Uber 有把 vettool 开源出来吗?
使用字段名初始化结构体
初始化结构体时,应该指定字段名称。现在由 go vet 强制执行。
k := User{"John", "Doe", true}
k := User{ FirstName: "John", LastName: "Doe", Admin: true, }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
下面这个例子,我使用 go vet 命令,并没有提示异常,这个规范是不是要自定义,Uber 有把 vettool 开源出来吗?
使用字段名初始化结构体
初始化结构体时,应该指定字段名称。现在由 go vet 强制执行。
The text was updated successfully, but these errors were encountered: