Go

golang开启mod后import报红解决

golang开启mod后import报红解决

golang项目开启mod模式并安装依赖完成后,import导入代码仍然飘红 原因是索引路径问题,此时当前项目的依赖路径,可以看到External Libraries只有Go SDK,并没有Go Modules 解决:File -> Settings -> Languages &

Joe.Ye Joe.Ye 2024-01-13
0 0 1
The selected directory is not a valid home for Go SDK

The selected directory is not a valid home for Go SDK

问题描述 在IDEA配置GOROOT本地路径 Languages & Frameworks -> Go -> GOROOT 时报错: The selected directory is not a valid home for Go SDK 出现这个错误的原因是 idea 的 G

Joe.Ye Joe.Ye 2024-01-13
0 0 1
go项目开发时,报cc1.exe: sorry, unimplemented: 64-bit mode not compiled in解决办法

go项目开发时,报cc1.exe: sorry, unimplemented: 64-bit mode not compiled in解决办法

go项目开发时,报cc1.exe: sorry, unimplemented: 64-bit mode not compiled in错误 # git clone https://github.com/Calcium-Ion/new-api.git # cd new-api # go version

Joe.Ye Joe.Ye 2024-01-13
0 0 1
Windows下安装golang

Windows下安装golang

官方下载:https://golang.google.cn/dl/ 推荐下载:go1.20.12 # go version go version go1.20.12 windows/amd64 # set GOPROXY=https://goproxy.cn IDEA配置 插件安装:Go IDEA

Joe.Ye Joe.Ye 2024-01-11
0 0 1