Golang gopls

From wikinotes

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'