{"id":18719971,"url":"https://github.com/mhinz/brew-go","last_synced_at":"2025-04-12T14:11:26.309Z","repository":{"id":62554580,"uuid":"106195971","full_name":"mhinz/brew-go","owner":"mhinz","description":"Manage Go tools via Homebrew.","archived":false,"fork":false,"pushed_at":"2017-10-17T21:30:32.000Z","size":38,"stargazers_count":28,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-13T18:59:30.031Z","etag":null,"topics":["go","golang","homebrew","mac","ruby","tools"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mhinz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-08T17:33:07.000Z","updated_at":"2023-12-07T07:48:32.000Z","dependencies_parsed_at":"2022-11-03T05:15:35.198Z","dependency_job_id":null,"html_url":"https://github.com/mhinz/brew-go","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhinz%2Fbrew-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhinz%2Fbrew-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhinz%2Fbrew-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhinz%2Fbrew-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mhinz","download_url":"https://codeload.github.com/mhinz/brew-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223521294,"owners_count":17159212,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","golang","homebrew","mac","ruby","tools"],"created_at":"2024-11-07T13:28:52.764Z","updated_at":"2024-11-07T13:28:53.425Z","avatar_url":"https://github.com/mhinz.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# brew-go\n\n[![Gem version](https://img.shields.io/gem/v/brew-go.svg)](https://rubygems.org/gems/brew-go)\n\nManage Go tools via Homebrew. Don't clutter your `$GOPATH` anymore.\n\nInternally brew-go still relies on `go get`, but puts things into\n`/usr/local/Cellar/brew-go-*`, builds the binary, removes everything else that\nwas needed for building, and links the binary to `/usr/local/bin/*`. All in one\ngo.\n\nThe gem was inspired by [this blog post](https://blog.filippo.io/cleaning-up-my-gopath-with-homebrew).\n\n## Installation\n\n    $ gem install brew-go\n\nIf you're not a Ruby user, chances are that you use the system's `/usr/bin/gem`,\nwhich tries installing to a directory that isn't writable by the user. Assuming\nyou have a local bin directory in $PATH, e.g. `~/bin`, use this instead:\n\n    $ gem install --user-install -n ~/bin brew-go\n\nAlternatively, just download [the\nscript](https://raw.githubusercontent.com/mhinz/brew-go/master/bin/brew-go) in\nany directory from $PATH and make it executable.\n\n## Usage\n\nSee `brew go` for all available commands.\n\nExample:\n\n    $ brew go get guru golang.org/x/perf/cmd/benchstat\n    [✓] benchstat (golang.org/x/perf/cmd/benchstat)\n    [✓] guru (golang.org/x/tools/cmd/guru)\n\n    $ which benchstat guru\n    /usr/local/bin/guru\n    /usr/local/bin/benchstat\n\n    $ brew go list\n    benchstat (golang.org/x/perf/cmd/benchstat)\n    guru      (golang.org/x/tools/cmd/guru)\n\n    $ brew go list guru\n    /usr/local/Cellar/brew-go-guru/golang.org#x#tools#cmd#guru/bin/guru\n\n    $ brew go update guru\n    [✓] brew-go-guru (golang.org/x/tools/cmd/guru)\n\n    $ brew go rm guru\n    Uninstalling /usr/local/Cellar/brew-go-guru/golang.org#x#tools#cmd#guru... (7.8MB)\n\n    $ brew uninstall brew-go-benchstat\n    Uninstalling /usr/local/Cellar/brew-go-benchstat/golang.org#x#perf#cmd#benchstat... (3.6MB)\n\n    $ brew go common\n    Here are a few commonly used tools. The names can be used as shortcuts:\n      $ brew go get guru\n\n    benchstat    (golang.org/x/perf/cmd/benchstat)\n    dlv          (github.com/derekparker/delve/cmd/dlv)\n    errcheck     (github.com/kisielk/errcheck)\n    fillstruct   (github.com/davidrjenni/reftools/cmd/fillstruct)\n    gocode       (github.com/nsf/gocode)\n    godef        (github.com/rogpeppe/godef)\n    goimports    (golang.org/x/tools/cmd/goimports)\n    golint       (github.com/golang/lint/golint)\n    gometalinter (github.com/alecthomas/gometalinter)\n    gorename     (golang.org/x/tools/cmd/gorename)\n    gotags       (github.com/jstemmer/gotags)\n    guru         (golang.org/x/tools/cmd/guru)\n    impl         (github.com/josharian/impl)\n    interfacer   (mvdan.cc/interfacer)\n    staticcheck  (honnef.co/go/tools/cmd/staticcheck)\n    unused       (honnef.co/go/tools/cmd/unused)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhinz%2Fbrew-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmhinz%2Fbrew-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhinz%2Fbrew-go/lists"}