配置学习Go的编辑器:配置TextMate
查看Go插件的幫助文檔:
基本內容如下:
This bundle relies on amazing open source tooling for some functionality. These utilities can be installed with the following commands:
go get -u github.com/nsf/gocode # completion go get -u github.com/zmb3/gogetdoc # documentation go get -u golang.org/x/tools/cmd/goimports # import resolution/rewriting go get -u github.com/golang/lint/golint # linting go get -u github.com/rogpeppe/godef # goto definition go get -u github.com/alecthomas/gometalinter # metalintingYou may override the following TextMate variables in the preferences (adjust paths to your own configuration). TextMate does not inherit the users environment unless it is launched from the command line. It may be necessary to set TM_GOPATH and GOROOT.
TM_GO=/usr/local/bin/go TM_GOPATH=/Users/myuser/go TM_GOCODE=/Users/myuser/bin/gocode TM_GOGETDOC=/Users/myuser/bin/gogetdoc TM_GOFMT=/Users/myuser/bin/gofmt # or /Users/myuser/bin/goimports TM_GOIMPORTS=/Users/myuser/bin/goimports TM_GOLINT=/Users/myuser/bin/golint TM_GODEF=/Users/myuser/bin/godef TM_GOMETALINTER=/Users/myuser/bin/gometalinter文中提到的插件都是開發Go語言程序和使用該插件的時候需要用到的,按照幫助文檔中的提示下載安裝插件,并配置插件路徑,
提醒一點,別忘了配置TM_GOPATH和GOROOT哦。
配置完畢后變量配置頁面結果為:
?
途中標紅部分是你的用戶名。
至此,用來開發Go的編輯器TextMate就配置完畢了。
?
?
?
?
?
轉載于:https://www.cnblogs.com/mengyehongmanshan/p/7351910.html
總結
以上是生活随笔為你收集整理的配置学习Go的编辑器:配置TextMate的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: POJ3272 Cow Traffic
- 下一篇: 【NOIP 模拟赛】钟 模拟+链表