Deprecated: Optional parameter $keys declared before required parameter $cms_id is implicitly treated as a required parameter in /home/www/dev/work/class/blog/CmsKey.php on line 75

Deprecated: Creation of dynamic property lvesu\lvesu\controller\blog\main::$outlink is deprecated in /home/www/dev/work/website/lvesu/template/blog/cms/cms.tpl on line 2

Deprecated: Creation of dynamic property lvesu\lvesu\controller\blog\main::$status is deprecated in /home/www/dev/work/website/lvesu/template/blog/index.head.php on line 2
添加go国内镜像源并安装gopls - 互联网笔记

略微加速

略速 - 互联网笔记

添加go国内镜像源并安装gopls

2025-11-24 leiting (3阅读)

标签 Golang

# 设置GOPROXY为国内镜像
go env -w GOPROXY=https://goproxy.cn,direct

# 或者使用七牛云的镜像
go env -w GOPROXY=https://goproxy.io,direct

# 然后重新安装
go install golang.org/x/tools/gopls@latest


北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3