John Floren

Home | Blog
Back to blog archive

Posted 2019/7/19

Go tools I use

I edit Go code in Plan 9 Port’s acme. These are a few tools I use for the task.

A

‘A’ is a really useful tool that helps you find definitions for functions, etc. For example, to find where a function is defined, click on a call to the function, then execute ‘A def’. To install A, you’ll need to run:

go get golang.org/x/tools/cmd/guru
go get github.com/davidrjenni/A

acmego

acmego can run in the background and automatically call gofmt and fix up your imports every time you do a “Put” on a file ending in .go. It relies on the goimports tool:

go get golang.org/pkg/tools/cmd/goimports

To use acmego, just fetch it and run it after launching acme:

go get 9fans.net/go/acme/acmego
acme &
acmego -f &