Skip to content
Go JavaScript TypeScript HTML CSS Shell
Branch: bingo
Clone or download
Pull request Compare This branch is 111 commits ahead, 365 commits behind golang:master.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
benchmark/parse benchmark/parse: fix cosmetic defect in error str. Feb 2, 2015
blog godoc,blog: perform minor cleanup Apr 14, 2018
cmd
container/intsets x/tools/container/intsets: add LowerBound Aug 21, 2017
cover
go go/analysis/doc: fix stuff that was left out of the previous commit Aug 30, 2019
godoc godoc: apply gofmt Aug 25, 2019
gopls
imports imports: allow nil Options in Process May 20, 2019
internal Merge branch 'master' of github.com:golang/tools into bingo Sep 4, 2019
playground playground: use stdlib instead of appengine packages Mar 7, 2019
present all: replace reference to plan9.bell-labs.com with 9p.io Aug 26, 2019
refactor all: do not write to testdata directories Aug 30, 2019
.gitattributes
.gitignore
AUTHORS
CONTRIBUTING.md
CONTRIBUTORS go.empty: prototype for new subrepository Jan 25, 2012
LICENSE LICENSE: add Mar 17, 2012
PATENTS go.empty: add PATENTS file to the subrepo. Apr 16, 2012
README.md
codereview.cfg tools: add codereview.cfg Mar 18, 2015
go.mod internal/lsp: use x/xerrors to create new errors Aug 6, 2019
go.sum

README.md

gopls

I have ported some features such as references, rename, workspace symbol, implementation of bingo to gopls

Install

gopls is a go module project, so you need install Go 1.12 or above, to install the gopls, please run

git clone -b bingo https://github.com/saibing/tools.git
cd tools/gopls
go install

Language Client

vscode-go

{
    "go.useLanguageServer": true,
    "go.alternateTools": {
        "go-langserver": "gopls"
    },
    "go.languageServerExperimentalFeatures": {
        "format": true,
        "autoComplete": true
    },
    "[go]": {
        "editor.snippetSuggestions": "none",
        "editor.formatOnSave": true,
        "editor.codeActionsOnSave": {
            "source.organizeImports": true
        },
    },
    "gopls": {
        "usePlaceholders": true,
        "enhancedHover": true
    }
}

coc.nvim

{
  "languageserver": {
    "golang": {
      "command": "gopls",
      "args": [],
      "rootPatterns": ["go.mod", ".vim/", ".git/", ".hg/"],
      "filetypes": ["go"]
    }
  }
}

Google offical gopls wiki

https://github.com/golang/go/wiki/gopls

You can’t perform that action at this time.