Golang gopls

From wikinotes
Revision as of 18:26, 26 June 2022 by Will (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Go LSP create/maintained by the go team.
The LSP features are all exposed on the commandline, which might be nice for scripting.

Documentation

github https://github.com/golang/tools/tree/master/gopls

Install

go install golang.org/x/tools/gopls@latest

Usage

Rename

gopls rename main.go:10:5 Foo  # rename identifier from 'main.go' line:10, col:5, to 'Foo'