Fyne lets developers build native desktop and mobile interfaces in Go from one codebase. Widgets follow Material-inspired design without a web runtime.
Overview
Fyne is a Go library and application API for graphical user interfaces on desktop and mobile devices. Developers add fyne.io/fyne/v2 to a module, define windows and widgets in Go, and compile the same project for multiple targets.
The toolkit ships standard widgets, layouts, themes, and scaling that adapt to user context, aiming to limit manual UI testing. A demo command showcases controls; mobile simulation flags help preview phone layouts on a workstation before packaging.
The fyne command line tool supports installing apps into OS application directories, packaging Android APKs and iOS or simulator bundles, and releasing signed mobile builds when certificates and profiles are configured. Documentation and examples cover first apps, packaging, and distribution through the project website.
Built applications are intended to run without preinstalled UI libraries on end-user machines. Companion utilities such as fynesettings manage global theme and scaling, and optional ecosystem apps help discover Fyne-based software on Linux desktops.
Key features
- Single Go codebase for UI
- Desktop and mobile widget set
- Material-inspired themes
- fyne CLI install and package
- Android and iOS packaging
- Mobile build simulation tags
- Portable apps without extra UI deps
- Global settings companion app
Use cases
- Cross-platform Go desktop utilities
- Simple mobile tools from Go code
- Internal business applets
- Prototyping native GUIs quickly
- Teaching Go with visual apps