This plugin adds Go language support for Vim, with the following main features. Look up documentation with :GoDoc or :GoDocBrowser, easily import packages via :GoImport, remove them via :GoDrop. Precise type-safe renaming of identifiers with :GoRename. See which code is covered by tests with :GoCoverage. Add or remove tags on struct fields with :GoAddTags and :GoRemoveTags. Call golangci-lint with :GoMetaLinter to invoke all possible linters (golint, vet, errcheck, deadcode, etc.) and put the result in the quickfix or location list. Lint your code with :GoLint, run your code through :GoVet to catch static errors, or make sure errors are checked with :GoErrCheck. Advanced source analysis tools utilizing guru, such as :GoImplements, :GoCallees, and :GoReferrers, and many more! Please see doc/vim-go.txt for more information. The gopls instance can be shared with other Vim plugins. Vim-go's use of gopls can be disabled.
Features
- Compile your package with :GoBuild, install it with :GoInstall or test it with :GoTest
- Quickly execute your current file(s) with :GoRun
- Improved syntax highlighting and folding
- Debug programs with integrated delve support with :GoDebugStart
- Completion and many other features support via gopls
- Formatting on save keeps the cursor position and undo history