Go Language Server

Tips and information on how to install and use language servers with the editor.
Post Reply
User avatar
Rickard Johansson
Site Admin
Posts: 6577
Joined: 19 Jul 2006 14:29

Go Language Server

Post by Rickard Johansson »

Go language server (gopls)
gopls (pronounced "Go please") is the official Go language server developed by the Go team. It provides IDE features to any LSP-compatible editor.

Install
* Install Go Programming Language from https://go.dev/doc/install.
* Install gopls

Code: Select all

  From command prompt run
    >go install golang.org/x/tools/gopls@latest
Add the server in project/sites settings

Server name
Go language server

Command
gopls.exe

Initial folder
%homepath%\go\bin

Command line arguments

File extension and language id
.go=go

Communication channel
* Command line (stdio)

Source folders
<Path to your go project files>

Initialize options
{}
Post Reply