标签:插件 doc 文件 solution gpe nts 苹果电脑 adjust src
查看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 # metalinting
You 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语言程序和使用该插件的时候需要用到的,按照帮助文档中的提示下载安装插件,并配置插件路径,配置完毕后变量配置页面结果为:
途中标红部分是你的用户名。
至此,用来开发Go的编辑器TextMate就配置完毕了。
标签:插件 doc 文件 solution gpe nts 苹果电脑 adjust src
原文地址:http://www.cnblogs.com/mengyehongmanshan/p/7351910.html