To install: % go get golang.org/x/tools/cmd/gorename % go build golang.org/x/tools/cmd/gorename % mv gorename $HOME/bin/ # or elsewhere on $PATH The go-rename-command variable can be customized to specify an alternative location for the installed command.