截止目前,go1.18 已经发布了22 天,当前有很多的小伙伴已经在使用最新的版本,尝试着各种解锁新姿势。 但是更新之后,在goland中打开发现全是报错,是不是怀疑自己打开的方式不对?
报错:'main'redeclared as the imported package name
报错:Cannot use 'fmt.Sprintf("xxx:%v" , err)' (type string) as the type any
对于这类完全不知道的新问题,尝试着删除 .idea 文
https://www.cnblogs.com/lpgit/p/13412529.html
GO学习–$GOBIN
一、安装
1、下载 go1.17.7.windows-arm64.zip
2、设置环境变量
官方文档: If you chose a directory other than c:\Go, you must set the GOROOT environment variable to your chosen path. Add the bin subdirecto