Page 1 of 1

Go Language Server

Posted: 26 Feb 2023 20:00
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
{}