1、go 安装
sudo mv go /usr/local/go
vim ~/.bashrc 对系统所有用户有效
vim ~/profile 对当前用户有效
export GOROOT="/usr/local/go"
export GOPATH="/go"
export PATH=$PATH:/usr/local/go/bin
最后:
source ~/profile
go version
2、goland 安装,官网下载linux版本解压
cd /usr/share/applications
sudo gedit goland.desktop
复制粘贴一下内容保存:
[Desktop Entry]
Encoding=UTF-8
Name=goland IDE
Comment=The Smarter Way to Code
Exec=/bin/sh "/usr/local/golang/bin/goland.sh"
Icon=/usr/local/golang/bin/goland.png
Categories=Application;Development;Java;IDE
Version=1.0
Type=Application
Terminal=0
搞定!!!