2019-06-12 13:54:15 -06:00
|
|
|
// Copyright 2019 The Go Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
// The gopls command is an LSP server for Go.
|
|
|
|
// The Language Server Protocol allows any text editor
|
|
|
|
// to be extended with IDE-like features;
|
|
|
|
// see https://langserver.org/ for details.
|
|
|
|
package main // import "golang.org/x/tools/gopls"
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
"os"
|
|
|
|
|
2019-09-18 15:33:04 -06:00
|
|
|
"golang.org/x/tools/gopls/internal/hooks"
|
2019-06-12 13:54:15 -06:00
|
|
|
"golang.org/x/tools/internal/lsp/cmd"
|
|
|
|
"golang.org/x/tools/internal/tool"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2019-09-18 15:33:04 -06:00
|
|
|
ctx := context.Background()
|
2019-10-10 18:48:16 -06:00
|
|
|
tool.Main(ctx, cmd.New("gopls", "", nil, hooks.Options), os.Args[1:])
|
2019-06-12 13:54:15 -06:00
|
|
|
}
|