• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

mhinz/brew-go: Manage Go tools via Homebrew.

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

mhinz/brew-go

开源软件地址:

https://github.com/mhinz/brew-go

开源编程语言:

Ruby 100.0%

开源软件介绍:

brew-go

Gem version

Manage Go tools via Homebrew. Don't clutter your $GOPATH anymore.

Internally brew-go still relies on go get, but puts things into /usr/local/Cellar/brew-go-*, builds the binary, removes everything else that was needed for building, and links the binary to /usr/local/bin/*. All in one go.

The gem was inspired by this blog post.

Installation

$ gem install brew-go

If you're not a Ruby user, chances are that you use the system's /usr/bin/gem, which tries installing to a directory that isn't writable by the user. Assuming you have a local bin directory in $PATH, e.g. ~/bin, use this instead:

$ gem install --user-install -n ~/bin brew-go

Alternatively, just download the script in any directory from $PATH and make it executable.

Usage

See brew go for all available commands.

Example:

$ brew go get guru golang.org/x/perf/cmd/benchstat
[✓] benchstat (golang.org/x/perf/cmd/benchstat)
[✓] guru (golang.org/x/tools/cmd/guru)

$ which benchstat guru
/usr/local/bin/guru
/usr/local/bin/benchstat

$ brew go list
benchstat (golang.org/x/perf/cmd/benchstat)
guru      (golang.org/x/tools/cmd/guru)

$ brew go list guru
/usr/local/Cellar/brew-go-guru/golang.org#x#tools#cmd#guru/bin/guru

$ brew go update guru
[✓] brew-go-guru (golang.org/x/tools/cmd/guru)

$ brew go rm guru
Uninstalling /usr/local/Cellar/brew-go-guru/golang.org#x#tools#cmd#guru... (7.8MB)

$ brew uninstall brew-go-benchstat
Uninstalling /usr/local/Cellar/brew-go-benchstat/golang.org#x#perf#cmd#benchstat... (3.6MB)

$ brew go common
Here are a few commonly used tools. The names can be used as shortcuts:
  $ brew go get guru

benchstat    (golang.org/x/perf/cmd/benchstat)
dlv          (github.com/derekparker/delve/cmd/dlv)
errcheck     (github.com/kisielk/errcheck)
fillstruct   (github.com/davidrjenni/reftools/cmd/fillstruct)
gocode       (github.com/nsf/gocode)
godef        (github.com/rogpeppe/godef)
goimports    (golang.org/x/tools/cmd/goimports)
golint       (github.com/golang/lint/golint)
gometalinter (github.com/alecthomas/gometalinter)
gorename     (golang.org/x/tools/cmd/gorename)
gotags       (github.com/jstemmer/gotags)
guru         (golang.org/x/tools/cmd/guru)
impl         (github.com/josharian/impl)
interfacer   (mvdan.cc/interfacer)
staticcheck  (honnef.co/go/tools/cmd/staticcheck)
unused       (honnef.co/go/tools/cmd/unused)



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap