Since the Fyne toolkit includes a canvas API and image handling similar to the Shiny project, it makes sense to also compare with the image viewer application that we created in Chapter 8, Shiny – Experimental Go GUI API. Let's start, as usual, with the basic application layout.
Building an image viewer
Layout
As we will be working with canvas APIs, as well as widgets and layouts, we will need to start by importing most of the Fyne sub-packages. In addition to canvas, where we get the basic image APIs, we will also use the theme package for accessing icons and the app package to launch our application. We don't need to import the image libraries, such as image/jpeg, because Fyne image widgets...