blob: 41c7cdbff8443a57464661edc3e6601d7bf9ba8d [file] [log] [blame]
Ian Cottrelld4e310b2019-06-12 15:54:15 -04001// 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.
4
Russ Coxe1c06e42021-01-08 12:59:44 -05005// Gopls (pronounced “go please”) is an LSP server for Go.
Ian Cottrelld4e310b2019-06-12 15:54:15 -04006// The Language Server Protocol allows any text editor
7// to be extended with IDE-like features;
8// see https://langserver.org/ for details.
Hana Kim174f5c62020-01-30 15:20:19 -05009//
Russ Coxe1c06e42021-01-08 12:59:44 -050010// See https://github.com/golang/tools/blob/master/gopls/README.md
11// for the most up-to-date documentation.
Ian Cottrelld4e310b2019-06-12 15:54:15 -040012package main // import "golang.org/x/tools/gopls"
13
Hana (Hyang-Ah) Kim38810462022-11-28 20:36:49 -050014//go:generate go run doc/generate.go
15
Ian Cottrelld4e310b2019-06-12 15:54:15 -040016import (
17 "context"
18 "os"
19
Ian Cottrellc4262602019-09-18 17:33:04 -040020 "golang.org/x/tools/gopls/internal/hooks"
Robert Findleyb15dac22022-08-30 14:40:12 -040021 "golang.org/x/tools/gopls/internal/lsp/cmd"
Ian Cottrelld4e310b2019-06-12 15:54:15 -040022 "golang.org/x/tools/internal/tool"
23)
24
25func main() {
Ian Cottrellc4262602019-09-18 17:33:04 -040026 ctx := context.Background()
Ian Cottrell58897482019-10-10 20:48:16 -040027 tool.Main(ctx, cmd.New("gopls", "", nil, hooks.Options), os.Args[1:])
Ian Cottrelld4e310b2019-06-12 15:54:15 -040028}