Skip to content
This repository has been archived by the owner on May 25, 2023. It is now read-only.
/ sublime-go Public archive

A Sublime Text package for working with Go.

License

Notifications You must be signed in to change notification settings

bongnv/sublime-go

Repository files navigation

sublime-go · Build Status

A Sublime Text package for working with Go.

Features

  • Code completion (using gocode)
  • Code format (using goimports)
  • Goto definition (using guru). Support modified files.
  • Linter (using golint, go vet, megacheck with SublimeLinter)
  • Real-time linting (using gotype-live)
  • Find all references (using guru). Support modified files.

Requirements

You probably need to install some golang tools:

go get -u golang.org/x/tools/cmd/goimports
go get -u github.com/nsf/gocode
go get -u golang.org/x/tools/cmd/guru
go get -u golang.org/x/lint/golint
go get -u github.com/tylerb/gotype-live
go get -u honnef.co/go/tools/cmd/megacheck

Make sure SublimeLinter is installed in order to have lint features.

Configurations

The plugin contributes the following settings:

  • go_override_default_hot_keys: Override default hot keys to provide functionality from the package (default: true)
  • To have custom formatter before files saving, add a similar configuration to the following to .sublime-project files:
  "golang": {
    "pre_save_formats": {
      "goimports": {
        "cmd": ["gofmt", "-e"]
      }
    }
  }

Known Issues

TODO

Release Notes

See CHANGELOG.md file

For more information

License

See LICENSE file

Enjoy!

Releases

No releases published

Packages

No packages published

Languages