Go
坚持不谢
这个作者很懒,什么都没留下…
展开
-
package golang.org/x/sys/windows: unrecognized import path “golang.org/x/sys/win dows“
解决方法:进入到上面说的golang.org/x目录下,执行命令下载sys。注:前提是已安装Git。git clone https://github.com/golang/sys.git原创 2020-10-15 11:14:15 · 2166 阅读 · 0 评论 -
go语言 declared and not used
go语言报错:xxx declared and not used代码类似:var test Testtype Test struct{ Name string}func main(){ test := Text{name:"test"}}func set(t Test){ test = t}经过排查发现,错误原因在于main函数里使用了 :=应该是:test = Text{name:”test”}...原创 2020-10-14 12:13:39 · 3972 阅读 · 0 评论 -
解决 VS Code 中 golang.org 被墙导致的 Go 插件安装失败问题
https://mp.weixin.qq.com/s/hjE5Uxppif4pdlRSKEr7HA如果用以上方法安装失败提示:cannot find package "github.com/mdempsky/gocode" in any of:啥的,那就别用命令安装装了,直接启动vs code,当他提示要install的时候,直接点击install,编辑即用你下载的tool工具开始安装了。...原创 2020-03-23 16:08:05 · 1097 阅读 · 1 评论