CmdID

CmdID / Commands

gopls

The official Go language server. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Start the language server

gopls serveIdentify

Show diagnostics for one or more files

gopls check path/to/file1.go path/to/file2.go ...Identify

Format one or more files in-place

gopls format -write path/to/file1.go path/to/file2.go ...Identify

Add missing and remove unused imports in a file in-place

gopls imports -write path/to/file.goIdentify

Show the definition of the identifier at a specific line and column

gopls definition path/to/file.go:line:columnIdentify

List all references to the identifier at a specific line and column

gopls references path/to/file.go:line:columnIdentify

Rename 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_nameIdentify

Display version

gopls versionIdentify