报错信息:
C:\Users\xxx\go\pkg\mod\honnef.co\go\tools@v0.3.1\go\ir\builder.go:36:2: //go:build comment without // +build comment
解决办法:
1.找到下面的文件,修改文件属性,取消勾选只读。
C:\Users\xxx\go\pkg\mod\honnef.co\go\tools@v0.3.1\go\types\typeutil\typeparams_test.go
2.在第二行增加
// +build go1.18
3.重新安装即可