1 // Copyright 2019 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 // The gopls command is an LSP server for Go.
6 // The Language Server Protocol allows any text editor
7 // to be extended with IDE-like features;
8 // see https://langserver.org/ for details.
10 // See https://github.com/golang/tools/tree/master/gopls
11 // for the most up-to-date information on the gopls status.
12 package main // import "golang.org/x/tools/gopls"
18 "golang.org/x/tools/gopls/internal/hooks"
19 "golang.org/x/tools/internal/lsp/cmd"
20 "golang.org/x/tools/internal/tool"
24 ctx := context.Background()
25 tool.Main(ctx, cmd.New("gopls", "", nil, hooks.Options), os.Args[1:])