Description
Unison is a cross-platform GUI toolkit for Go desktop applications. It runs on macOS, Windows and Linux and draws its own widgets, so an application looks and behaves the same on all three systems. The toolkit is pure Go from the window system up, with no C toolchain and no bundled native libraries, so builds with CGO disabled cross-compile easily between platforms. On Linux it loads libX11 and libGL at runtime and talks to the display through X11, so Wayland desktops use XWayland. Everything a window shows is a Panel, widgets embed panels, and layouts such as FlexLayout arrange them. Start runs the event loop and never returns, so an application creates its initial windows in the startup callback. A larger example in cmd/example covers most of the widgets. On Windows you build with the windowsgui linker flag so no console window opens when the app is launched from Explorer. Unison requires Go 1.27 or later, and its API reference is on pkg.go.dev.…
Highlights
- Same look on macOS, Windows and Linux
- Pure Go with CGO disabled
- Panel-based widgets and flexible layouts
- Example app covering most widgets
- Optional SIMD rendering on amd64 and arm64
Ratings & Reviews
No ratings yet
Be the first to rate Unison.
People also visit
Unison FAQ
What is Unison?
A GUI toolkit for building desktop applications in Go. It draws its own widgets, so the interface looks the same on macOS, Windows and Linux.
What do I need to build with it?
Go 1.27 or later. You do not need a C toolchain, since builds use CGO_ENABLED=0. On Linux the runtime needs libX11 and libGL, which most desktops already have.
Does it work on Wayland?
Unison talks to the display server through X11, so on Wayland desktops it runs through XWayland, which is virtually always present.
Where can I find the API?
The API reference is on pkg.go.dev, and the cmd/example folder in the repository shows most of the widgets in use.
What are the best Unison alternatives?
Popular alternatives to Unison include Wails, Desktop and Unite. See all Unison alternatives



