Golang开发环境

一、Goland(付费)

GolandJetbrains开发的golang集成开发环境。

1.1 Linux

1.1.1 snapd

使用sudo snap install goland --classic即可完成安装。

1.1.2 jetbrain toolbox

下载jetbrain toolbox,打开即可下载Goland

1.2 Mac OS

mac os使用jetbrain toolbox下载安装即可。

二、VS Code(open source)

VS Code提供golang插件,配置过程如下: 1. Ctrl(Command on Mac)+Shift+p,键入ext install go,安装微软提供的golang插件。 2. 安装所需的golang库。

    go get -u -v github.com/nsf/gocode
    go get -u -v github.com/rogpeppe/godef
    go get -u -v github.com/golang/lint/golint
    go get -u -v github.com/lukehoban/go-outline
    go get -u -v sourcegraph.com/sqs/goreturns
    go get -u -v golang.org/x/tools/cmd/gorename
    go get -u -v github.com/tpng/gopkgs
    go get -u -v github.com/newhook/go-symbols
    go get -u -v golang.org/x/tools/cmd/guru
  1. Ctrl(Command)+Comma打开settings,选择自己需要的配置即可。(optional)

三、Vim(open source)

todo

Last updated

Was this helpful?