gopls
The official Go language server. tldr-pages
On several platforms
Several platforms
Start the language server
gopls serveIdentifyShow diagnostics for one or more files
gopls check path/to/file1.go path/to/file2.go ...IdentifyFormat one or more files in-place
gopls format -write path/to/file1.go path/to/file2.go ...IdentifyAdd missing and remove unused imports in a file in-place
gopls imports -write path/to/file.goIdentifyShow the definition of the identifier at a specific line and column
gopls definition path/to/file.go:line:columnIdentifyList all references to the identifier at a specific line and column
gopls references path/to/file.go:line:columnIdentifyRename the identifier at a specific line and column, writing the changes to the affected files
gopls rename -write path/to/file.go:line:column new_nameIdentifyDisplay version
gopls versionIdentify