goland一些问题处理

一、goland配置sdk非法的目录问题

"The selected directory is not a valid home for Go Sdk"处理
https://www.jianshu.com/p/a79f225380e6

二、go sdk 与goland 编译器版本不兼容问题

Goland报错 ‘main‘ collides with name declared in this package 或 Found several packages [http, main]
https://blog.csdn.net/jin1366101575/article/details/123935434

三、goland调试工具dlv版本过老问题

阿里云盘

四、goland go mod时引入包报错,不能跳转修复

1、删除vendor
2、go mod tidy
3、第一次tidy下载包,还报红就再tidy一次

五、当go get的时候报错如下

go: go.mod file not found in current directory or any parent directory; see ‘go help modules‘
https://blog.csdn.net/longgeaisisi/article/details/121288696

六、go get 加 -u 和不加 -u 参数的区别

https://blog.csdn.net/MCJPAO/article/details/105642216

七、Goland写结构体方法,带不带(*)区别

https://blog.csdn.net/weixin_51464490/article/details/123512187

八、字符串与字节数组互转

https://blog.csdn.net/moer0/article/details/122934188

九、Go语言main函数接收外部参数

https://blog.csdn.net/zhghost/article/details/102849345

posted @     阅读(250)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 分享4款.NET开源、免费、实用的商城系统
· Obsidian + DeepSeek:免费 AI 助力你的知识管理,让你的笔记飞起来!
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
点击右上角即可分享
微信分享提示