Desktop apps in Go.Tiny, fast, fully typed.
One small binary for macOS, Windows and Linux. Native UI or a web frontend in Go, with installers and auto-updates included.
- Binary
- ~7MB
- Memory, native UI
- ~44MB
- Memory, webview included
- ~62MB
- CPU at idle
- 0%
Sponsors
type counter struct{ n int }
func (s *counter) view(c *ui.Context) {
ui.Column(c).Fill().Center().Gap(12).Children(func() {
ui.Text(c, fmt.Sprint(s.n)).FontSize(40).Bold()
if ui.PrimaryButton(c, "Increment").Clicked() {
s.n++
}
})
}
func main() {
s := &counter{}
mygo.App.WhenReady(func() {
mygo.NewWindow(mygo.WindowOptions{
Title: "Counter",
Content: ui.View(s.view),
})
})
if err := mygo.App.Run(); err != nil {
log.Fatal(err)
}
}
No webview
The view is a Go function of your app's state. MyGo calls it to build each frame and draws it on the GPU, with Metal, Direct3D or OpenGL: no HTML, no JavaScript, no bindings.
Its windows open at once, and an app of native UI alone needs only Go to build and no webview to run.
$ go run github.com/egoist/mygo/cmd/mygo@latest \ init -template native my-app $ cd my-app && go tool mygo dev
Web frontends
Any web stack, in the webview the OS already has: WKWebView, WebKitGTK, WebView2. No browser bundled.
Native UI
Interfaces written in Go alone and drawn on the GPU: flexbox and grid layout, widgets, text editing, screen reader support. No webview at all.
Typed IPC
Pages call bound Go services, stream values through channels and get typed events. The TypeScript client is generated from your Go code.
Desktop APIs
Windows, menus, tray, dialogs, notifications, global shortcuts, deep links, file associations and more, for windows of both kinds.
Pure Go, no cgo
Build for every platform from any machine.
Ready to ship
App bundles and disk images, Windows installers, Debian and RPM packages, code signing, notarization and signed auto-updates.

