赞
踩
下载地址: https://plugins.jetbrains.com/plugin/9568-go
安装方式: File -> Setting -> Plugins -> Install plugin from disk -> restart IDEA
下载地址: https://golang.google.cn/dl/
安装方式: 解压 -> 添加环境变量 export PATH=$PATH:/usr/local/go/bin
-> 配置生效source /etc/profile
参考:http://www.runoob.com/go/go-environment.html
输入命令: go get -u -v github.com/kardianos/govendor
安装govendor: sudo apt-get install govendor
进入项目路径: govendor init
govendor add +external
govendor update +external
参考:https://blog.csdn.net/jiankunking/article/details/78936307
设置GOROOT: File -> Setting -> Languages&Frameworks -> Go -> GOROOT -> 选择Go安装目录
设置GOPATH: File -> Setting -> Languages&Frameworks -> Go -> GOPATH -> (Global:为Go安装目录/src , Project: 为项目目录)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。