Skip to content

Commit

Permalink
gopls: adding the gopls module
Browse files Browse the repository at this point in the history
Change-Id: I521ff33f8733a7d636b8ebc611715cb19e41bc83
Reviewed-on: https://go-review.googlesource.com/c/tools/+/181946
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
  • Loading branch information
ianthehat committed Jun 12, 2019
1 parent 10539ce commit d4e310b
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gopls/go.mod
Original file line number Diff line number Diff line change
@@ -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 => ../
8 changes: 8 additions & 0 deletions gopls/go.sum
Original file line number Diff line number Diff line change
@@ -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=
21 changes: 21 additions & 0 deletions gopls/main.go
Original file line number Diff line number Diff line change
@@ -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:])
}

0 comments on commit d4e310b

Please sign in to comment.