fyne bundle
The previous tools will work with any of the Go GUI frameworks, but if you are using the Fyne toolkit, you can make use of its own bundling utility (within the fyne command that is part of the Fyne project). The benefit of using this specific tool when working with a Fyne-based application is that it generates fyne.Resource definitions for each of the embedded resources. This makes it easier to pass an asset into various Fyne APIs. The process for fyne bundle is similar to go-bindata—running the utility converts assets from the filesystem into the Go source code, which can then be compiled into applications. The biggest difference is how we then reference the assets, that is, through declared variables instead of a lookup system. ...
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