Go-plus: Making Your Go Experience Better In Atom


Hi Guys and Gals,

If you’re using Atom with go / golang, you should take a look at the package I created: go-plus: https://atom.io/packages/go-plus.

Current functionality includes:

  • Formatting source using gofmt
  • Formatting and managing imports using goimports (change the Gofmt Path
    preference to target goimports)
  • Code quality inspection using go vet
  • Linting using golint
  • Syntax checking using go build and go test

Planned functionality includes:

Credit must be given to @rubyist and @mattetti for their contributions that added significant functionality to this package.

The full CHANGELOG is embedded below:

v1.0.4 (April 8th, 2014)

  • :bug: Ensure that a GOPATH with multiple values is handled correctly
  • :lipstick: Remove user-specific paths from tests (fixes #19)

v1.0.3 (April 7th, 2014)

v1.0.2 (April 7th, 2014)

  • :lipstick: Redirect build output to temporary directory (fixes #17)

v1.0.1 (April 7th, 2014)

  • :lipstick: Disable display of panel and ‘No Issues’ by default, but allow it to be turned on (fixes #16)

v1.0.0 (April 6th, 2014)

  • :new: Use atom-message-panel for error display (fixes #3, #14)
  • :new: It is now possible to use the $GOPATH variable in both Gofmt Path (e.g. $GOPATH/bin/goimports) and Golint Path (e.g. $GOPATH/bin/golint) (fixes #13)
  • :lipstick: Remove redundant code, ensure we don’t trigger for views which are not EditorViews
  • :lipstick: Show an error if Go Executable Path, Gofmt Path, or Golint Path cannot be found

v0.7.3 (April 3rd, 2014)

  • :bug: Ensure go build syntax checking compiles the entire package (fixes #10)

v0.7.2 (April 2nd, 2014)

  • :bug: Suppress console errors if no file is open and a menu command is run

v0.7.1 (April 2nd, 2014)

  • :bug: Fixed menu commands so that you can run commands individually

v0.7.0 (April 2nd, 2014)

  • :new: Add golint Support (fixes #7)

v0.6.0 (April 1st, 2014)

  • :new: Syntax checking using go build and go test – in both cases, any output will be automatically cleaned up (fixes #1)
  • :lipstick: Clean up logging
  • :lipstick: Emit events so that external actors (e.g. tests, or other package authors) may trigger actions based on go-plus lifecycle events
  • :lipstick: Tests for errors
  • :bug: Fixed issue where vet support would not work if format on save was not enabled (fixes #8)

v0.5.2 (March 20th, 2014)

  • :abc: Add examples and demo gif

v0.5.1 (March 19th, 2014)

  • :abc: Update README and package metadata

v0.5.0 (March 19th, 2014)

  • :new: go vet support (fixes #5)
  • :lipstick: Ensure errors are sorted by line number
  • :lipstick: Ensure duplicate errors are excluded
  • :lipstick: Ensure error pane is removed when tabs are changed

v0.4.0 (Initial Release - March 13th, 2014)

  • :new: gofmt and goimports support