go-bindata
GUI-based applications are not alone in needing to solve this challenge so there are many solutions already available. The most commonly utilized tool is called go-bindata and is available from github.com/jteeuwen/go-bindata. It is a simple utility that converts static files in to Go source code so they can be compiled into an application. This approach is the easiest to work with as the embedded assets become part of the source code and would therefore be checked out and built with the rest of the project. Unfortunately, that package is no longer maintained, even though it is still heavily used in the community. New, actively-maintained versions do exist, but are less popular at this time.
To use this asset packager, we install ...
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