diff --git a/gopls/go.mod b/gopls/go.mod new file mode 100644 index 0000000000..6053ebf043 --- /dev/null +++ b/gopls/go.mod @@ -0,0 +1,7 @@ +module golang.org/x/tools/gopls + +go 1.11 + +require golang.org/x/tools v0.0.0-20190612231717-10539ce30318 + +replace golang.org/x/tools => ../ diff --git a/gopls/go.sum b/gopls/go.sum new file mode 100644 index 0000000000..b17aadeb61 --- /dev/null +++ b/gopls/go.sum @@ -0,0 +1,8 @@ +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/sync v0.0.0-20190423024810-112230192c58 h1:8gQV6CLnAEikrhgkHFbMAEhagSSnXWGV915qUMm9mrU= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/tools v0.0.0-20190612180059-59534d075a87 h1:RZgRBvCwrKVLcEd+O/QbyISA6RAPPLTYHdPw4Nk0Wz0= +golang.org/x/tools v0.0.0-20190612180059-59534d075a87/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= diff --git a/gopls/main.go b/gopls/main.go new file mode 100644 index 0000000000..8788239d71 --- /dev/null +++ b/gopls/main.go @@ -0,0 +1,21 @@ +// 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" + + "golang.org/x/tools/internal/lsp/cmd" + "golang.org/x/tools/internal/tool" +) + +func main() { + tool.Main(context.Background(), cmd.New("", nil), os.Args[1:]) +}