1. 用golang最特征go mod包管理工具
2. vim-go配置:点这里
此时函数还不能跳转,执行3和4
3. 在.bash_profile中添加如下:
export GOPROXY="https://goproxy.io,https://goproxy.cn,https://mirrors.aliyun.com/goproxy/"
export GO111MODULE="on"
export GOPRIVATE=*.qutoutiao.net //私有
4. 在项目目录下执行:go mod download下载相应的依赖包
这里函数支持跳转了