packr
An alternative approach is provided by the packr project, hosted at github.com/gobuffalo/packr. This utility provides additional functionality over go-bindata and other similar tools— the ability to load assets directly from the filesystem while in development. This flexibility can speed up working with many assets, as you no longer have to re-generate the packaged source code after every change. This flexibility, however, requires a slight change in workflow, and it is necessary to use the packr command in place of go when building the application for installation or release.
To use this bundle technique, we need to install the packr tool (using go get -u github.com/gobuffalo/packr/packr), which will also ensure the library is installed. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access