Ubuntu下golang环境搭建

参考官方文档:https://golang.org/doc/editors.html

1、安装golang

apt install golang

2、配置GOPATH

mkdir ~/gopath

vim ~/.zshrc,添加一行:

export GOPATH="/home/robin/gopath"

3、安装vim-go

先安装vim插件管理工具:https://github.com/VundleVim/Vundle.vim

安装vim-go:https://github.com/fatih/vim-go

 

posted @ 2017-12-29 07:34  冷冰若水  阅读(1082)  评论(0编辑  收藏  举报