An Improved Go Experience For The Atom Editor
This package includes the following functionality:
go version
and go env
gocode
gofmt
, goimports
, or goreturns
;
optionally run one of these tools on save of any .go
filego install .
and go test -c -o {tempdir} .
to verify your code compiles
and to keep gocode
suggestions up to dategolint
, vet
, etc.) against your code using gometalinter
, revive
or golangci-lint
go test -coverprofile
gogetdoc
gorename
guru
or godef
guru
guru
You can add debug functionality to Atom by installing the following package:
The following commands are run for the directory of the current file:
go install .
(for normal .go
files)go test -o {tmpdir} -c .
(for _test.go
files)go install
Instead Of go build
?gocode
(and a few other tools, like gotype
) work on .a
files (i.e. the package object archive), and the way to keep these up to date is to run go install
periodically. This ensures your autocomplete suggestions are kept up to date.
The package has CI for OS X, Windows and Ubuntu.
If you are missing any required tools, you may be prompted to install them. You can also manually install the required tools in your terminal:
go get -u golang.org/x/tools/cmd/goimports
go get -u golang.org/x/tools/cmd/gorename
go get -u github.com/sqs/goreturns
go get -u github.com/mdempsky/gocode
go get -u github.com/alecthomas/gometalinter
go get -u github.com/mgechev/revive
go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
go get -u github.com/zmb3/gogetdoc
go get -u github.com/zmb3/goaddimport
go get -u github.com/rogpeppe/godef
go get -u golang.org/x/tools/cmd/guru
go get -u github.com/fatih/gomodifytags
go get -u github.com/tpng/gopkgs
go get -u github.com/ramya-rao-a/go-outline
Please consult the FAQ prior to opening an issue: https://github.com/joefitzgerald/go-plus/wiki/FAQ
If you have an issue with debugging, file an issue with go-debug
here.
A list of contributors can be found at https://github.com/joefitzgerald/go-plus/graphs/contributors. Thank you so much to everyone has contributed to the package :heart:. You are awesome!
Contributions are greatly appreciated. Please fork this repository, make your changes, and open a pull request. See Contributing for detailed instructions.