{"id":19119783,"url":"https://github.com/wintermi/zsh-golang","last_synced_at":"2025-06-21T21:38:43.246Z","repository":{"id":136385250,"uuid":"584085670","full_name":"wintermi/zsh-golang","owner":"wintermi","description":"A simple zsh plugin for the Go programming language toolchain.","archived":false,"fork":false,"pushed_at":"2024-09-28T09:49:02.000Z","size":114,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-27T00:26:17.895Z","etag":null,"topics":["golang","zsh","zsh-plugin"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wintermi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-01-01T09:32:51.000Z","updated_at":"2024-09-28T09:49:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"f480344a-7fd7-471b-ac52-29951cea5a6f","html_url":"https://github.com/wintermi/zsh-golang","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wintermi%2Fzsh-golang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wintermi%2Fzsh-golang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wintermi%2Fzsh-golang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wintermi%2Fzsh-golang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wintermi","download_url":"https://codeload.github.com/wintermi/zsh-golang/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252523118,"owners_count":21761854,"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":["golang","zsh","zsh-plugin"],"created_at":"2024-11-09T05:11:07.629Z","updated_at":"2025-05-05T15:25:53.898Z","avatar_url":"https://github.com/wintermi.png","language":"Shell","funding_links":[],"categories":["Plugins"],"sub_categories":["ZSH on Windows"],"readme":"# zsh-golang\nA zsh plugin for the Go programming language toolchain.\n\n## Install\nUsing the [:zap: Zap](https://www.zapzsh.org/) minimal zsh plugin manager, add the following to your `.zshrc`\n\n```sh\n# Install plugin\nplug \"wintermi/zsh-golang\"\n```\n\n## Prerequisite Checks\nA number of checks are performed to verify the following Go programming language tools have been installed:\n\n- [`g`](https://github.com/stefanmaric/g) - A simple go version manager\n- [`go`](https://github.com/golang/go) - The Go programming language\n- [`gofmt`](https://pkg.go.dev/cmd/gofmt) - Formats Go programs\n\n\n## Environment\nBy default, the following go environment variables will be setup\n\n```sh\nexport GOPATH=\"$HOME/go\"\nexport GOROOT=\"$HOME/.go\"\n```\n\n`$GOPATH/bin` is also added to the `PATH`.\n\nIf a different environment location is required, these variables can be defined prior to installing the plugin, as shown below\n\n```sh\n# Install plugin with a different environment location\nexport GOROOT=\"$HOME/.local/share/golang\"\nexport GOPATH=\"$HOME/MyProjects/go-projects\"\nplug \"wintermi/zsh-golang\"\n```\n\n\n## Tab Completions\nTab completions are provided for `g`, `go` and `gofmt` commands. An example of which can be seen below.\n\n![g-install-tab-completion](https://user-images.githubusercontent.com/33818/210471572-251ff711-d082-4e09-b54e-a74c716d022f.jpg)\n\n\n## License\nThe **zsh-golang** plugin is released under the [Apache License 2.0](https://github.com/wintermi/zsh-golang/blob/main/LICENSE) unless explicitly mentioned in the file header.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwintermi%2Fzsh-golang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwintermi%2Fzsh-golang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwintermi%2Fzsh-golang/lists"}