This repository has been archived by the owner on May 7, 2021. It is now read-only.
v4.0.0
go-plus
v4.0.0 is an evolution of the package. Prior versions were monolithic, including a large amount of code and functionality in a single package. This new version splits the functionality out into single-purpose packages:
go-config
: Detects your go installation(s) and configures your environment, while laying the foundation for futuregb
andglide
integrationgo-get
: If you are missing a tool, this package will offer to rungo get
to fetch itautocomplete-go
: Anautocomplete-plus
provider that usesgocode
to provide suggestionsgofmt
: Format your go source code usinggofmt
,goimports
, orgoreturns
gometalinter-linter
: Run a variety of linters (e.g.lint
,vet
,gotype
, etc.) against your codenavigator-godef
: Go to definition usinggodef
tester-go
: Display test coverage usinggo test -coverprofile
- 🆕
gorename
: Rename the symbol under your cursor usinggorename
(thanks @zmb3!)
This should make it easier for you to reason over the code related to each piece of go-plus
functionality (admittedly at the cost of figuring out "which package do I need to work with?"). It will also allow others to build upon the foundation that exists in go-config
and go-get
.
New
- Added
gorename
support - Removed specific
vet
andlint
linting functionality and replaced it withgometalinter
, which gives you many more options for lintinggometalinter-linter
integrates withlinter
to display warnings and errors
Improved
- All packages are now written in JavaScript (ES6) instead of CoffeeScript (hopefully this makes contribution easier)
- If you are missing tools,
go-get
will now prompt you to install them, rather than automatically doing so - (OS X) You used to have to launch
atom
from the terminal to have it function correctly (due to a quirk in the way OS X andlaunchd
work) - we have patchedatom
to allow it to work correctly even when you launch it fromFinder
,Dock
, orSpotlight
but this requires Atom >= 1.7.0 (1.6.x is in thestable
channel now, 1.7.x is in thebeta
channel); theenvironment
package will be installed to perform this patching for you until 1.7.0 is the stable release - You can now individually run
gofmt
,goimports
, orgoreturns
against files (so for example, you may choose to rungofmt
on save by default and then periodically (manually) invoke the command to rungoimports
)
Deprecated
- "Display Go Information" is now gone - it may make a comeback in the future, we'll see
- The old
go-plus
message panel is gone - you should not expect to see a pop-up that displays information about your environment