gopls
brew install gopls
v0.22.0
BSD-3-Clause
Language Server Protocol (LSP) server for Go, enabling IDE-like editor features via gopls.
Why you might care
gopls provides real-time code analysis, completion, diagnostics, and refactoring to any LSP-compatible editor (VSCode, Vim, Neovim, Emacs). It's the official Go language server maintained by the Go team and essential for modern Go development workflows outside the basic toolchain.
2.0k
30-day installs · #977
4.8k
90-day · #1116
17.1k
365-day · #1137
8.0k
★ GitHub stars · updated 2mo ago
Build dependencies
Links
- https://github.com/golang/tools/tree/master/gopls
- GitHub: golang/tools
- Brew formula source: Formula/g/gopls.rb
Blurb generated by claude-haiku-4-5 on 2mo ago.
Raw metadata
{
"aliases": [],
"alternatives": [
"go",
"vim-go",
"coc-go"
],
"build_dependencies": [
"go"
],
"categories": [
"language-runtime",
"editor"
],
"caveats": null,
"conflicts_with": [],
"dependencies": [],
"deprecated": 0,
"deprecation_reason": null,
"desc": "Language server for the Go language",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:38:19+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "gopls",
"github_default_branch": "master",
"github_last_commit_at": "2026-06-18T20:22:47Z",
"github_readme_excerpt": "# Go Tools\n\n[](https://pkg.go.dev/golang.org/x/tools)\n\nThis repository provides the `golang.org/x/tools` module, comprising\nvarious tools and packages mostly for static analysis of Go programs,\nsome of which are listed below.\nUse the \"Go reference\" link above for more information about any package.\n\nIt also contains the\n[`golang.org/x/tools/gopls`](https://pkg.go.dev/golang.org/x/tools/gopls)\nmodule, whose root package is a language-server protocol (LSP) server for Go.\nAn LSP server analyses the source code of a project and\nresponds to requests from a wide range of editors such as VSCode and\nVim, allowing them to support IDE-like functionality.\n\n\u003c!-- List only packages of general interest below. --\u003e\n\nSelected commands:\n\n- `cmd/goimports` formats a Go program like `go fmt` and additionally\n inserts import statements for any packages required by the file\n after it is edited.\n- `cmd/callgraph` prints the call graph of a Go program.\n- `cmd/digraph` is a utility for manipulating directed graphs in textual notation.\n- `cmd/stringer` generates declarations (including a `String` method) for \"enum\" types.\n- `cmd/toolstash` is a utility to simplify working with multiple versions of the Go toolchain.\n\nThese commands may be fetched with a command such as\n```\ngo install golang.org/x/tools/cmd/goimports@latest\n```\n\nSelected packages:\n\n- `go/ssa` provides a static single-assignment form (SSA) intermediate\n representation (IR) for Go programs, similar to a typical compiler,\n for use by analysis tools.\n\n- `go/packages` provides a simple interface for loading, parsing, and\n type checking a complete Go program from source code.\n\n- `go/analysis` provides a framework for modular static analysis of Go\n programs.\n\n- `go/callgraph` provides call graphs of Go programs using a variety\n of algorithms with different trade-offs.\n\n- `go/ast/inspector` provides an optimized means of traversing a Go\n parse tree for use in analysis too",
"github_repo": "golang/tools",
"github_stars": 7968,
"github_topics": [],
"homepage": "https://github.com/golang/tools/tree/master/gopls",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": null,
"installs_30d": 1974,
"installs_365d": 17125,
"installs_90d": 4755,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "BSD-3-Clause",
"llm_generated_at": "2026-06-20T23:48:12+00:00",
"llm_model": "claude-haiku-4-5",
"name": "gopls",
"oldnames": [],
"one_liner": "Language Server Protocol (LSP) server for Go, enabling IDE-like editor features via gopls.",
"optional_dependencies": [],
"rank_30d": 977,
"rank_365d": 1137,
"rank_90d": 1116,
"raw_hash": "ae7e1eeaeec531e4",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/g/gopls.rb",
"tap": "homebrew/core",
"test_dependencies": [],
"uses_from_macos": [],
"version_head": "HEAD",
"version_stable": "0.22.0",
"versioned_formulae": [],
"why_use_this": "gopls provides real-time code analysis, completion, diagnostics, and refactoring to any LSP-compatible editor (VSCode, Vim, Neovim, Emacs). It\u0027s the official Go language server maintained by the Go team and essential for modern Go development workflows outside the basic toolchain."
}