Header logo.
Small Hallucinations
HomeArchiveTagsAboutFeed

Notes tagged with “fyne”

Trying out Fyne

The idea of building a piece of software once and run it everywhere is certainly charming. And Go supports cross-compiling out of the box.

Fyne is a very promising GUI package for Go that helps you build a GUI app and cross-compile it for (almost) all devices and OSes.

For a quick example, this code gives you a small window with a label and an input field. Grab this piece of code, init a mod and tidy it, and you are good to go.

First, on line {1} we define an app in a. Then we define a window w with title “Hello, you!” on line {2}. ⋯