A tool for reuse Go code, that bundles a whole package inside a single file. It allows to rename certain identifiers and keep the changed definitions. Also it supports
go generate by adding the necessary comments.
Go get this tool by:
$ go get -u -v gopkg.in/dc0d/goreuse.v2
Or from the master branch:
$ go get -u -v github.com/dc0d/goreuse
More information is provided inside the documentation.