goland 导入github包报红问题解决

goland 导入github包报红问题解决

本文主要介绍了goland 导入github包 报红问题解决,具体如下:

在导入GitHub的redis项目的时候报红

首先启用Go Module,file- setting- Go- Go Module

设置代理,GOPROXY=https://goproxy.cn

接着新建module file

内容自动生成

鼠标放在报红的位置 点击Sync

如果没有这个选项可以使用alt + enter

接着就没问题了

goland 导入github包报红问题解决