Program GUIs in Go with Fyne

Fyne Work


To compile the program, change to the directory with the source code files and fire off:

go mod init checksum
go build

The two-liner produces an executable binary named checksum.

Fyne also comes with a cross-compiler named fyne-cross [4] that can be used to compile executables for most operating systems:

$ go get
$ ~/go/bin/fyne-cross <operating system>
$ fyne-cross <operating system> -help

The cross-compiler requires a previously set up Docker image for the install (first line); then, a call to the cross-compiler in the directory containing the source code files is all it takes to compile an executable for the desired operating system (second line); and further options for configuring the compile are provided by the fyne-cross online help (final line).


All told, developing a GUI with the Fyne GUI toolkit is not rocket science. If you have at least a solid basic knowledge of Go or are perhaps moving from some other programming language, you will be able to find your way around quickly. In the present version 2.0, the framework already feels very rounded. If you want to learn more, take a closer look at a book by Fyne creator Andrew Williams [5].

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy ADMIN Magazine

Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Program from one source to many apps with Flutter
    Developing apps in the past for Android, iOS, the web browser, and the desktop meant having to write different versions of the code; however, that's no longer the case thanks to Google's Flutter framework.
  • Manipulation detection with AFICK
    AFICK is a small, free tool that helps administrators detect attempts to manipulate documents and system files.
  • VAX emulation with OpenVMS
    Emulators beam a long-lost computer age into the present day with SIMH software, which brings the OpenVMS system back to life on an emulated VAX computer.
  • Building a low-powered NAS
    Build a network-attached storage box with Rockstor to manage your data.
  • Digital asset management
    If you want to make your photos, videos, audio files, and text documents available to others, your best bet is to manage this multimedia content with special software. Four programs can help you create, publish, and share these digital assets.
comments powered by Disqus