我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

使用Golang + vscode时如何解决错误

enter image description hereI wish to use the vscode to type golang, so I set both, then I added the go plugins in vscode, but it shows these error, I don't know how to fix it. Is there any knows it?

Error

plugins

setting.json

go env

Finally, I found the solution. You can open the user's settings.json file in the visual code , then

set "go.buildOnSave": true,
set "go.lintOnSave": true,
set "go.vetOnsave":false

I hope it can help you

近期文章

  • (.type)如何工作
  • 即使bash脚本中定义的go例程被杀死,bash脚本也会继续执行吗?
  • Go get的TLS问题
  • 如何将值附加到…interface {}?
  • 访问内存位置数组中的数据
  • 不能在go lang中将type []字符串用作类型字符串
  • Golang中的PHP fopen / fread / fwrite等效项
  • 如何找出golang频道的目的地
  • 如何在Go中有效地将字符串转换为字节片(包括最后的0)?
  • 在以下任何位置都找不到软件包“ github.com/gorrila/mux”
  • GoSonar:如何生成go test -json> report.json
  • 如何在GO中检查命令行参数
  • 为什么Go反射NumField()仅在类型上可用?
  • Golang中有与PHP openssl_pkey_get_private等效的东西吗?
  • 转到使用频道进行备用打印
  • 了解去无缓冲通道的例子
  • Golang:连接int数组
  • 为什么bcrypt库的CompareHashAndPassword方法很慢?
  • 分配给nil映射中的条目,初始化映射没有
  • 转到syscall库代码说明[重复]

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华