Skip to content

TanGoDesktop and mobile apps in Go

Use the system WebView, draw the interface in Go, or mix both in one window. The WebView is the one the OS already ships, so no browser engine is bundled.

TanGo
1.8 MiBSmallest installermacOS .dmg of a minimal WebView app that loads one page, default tan package output; Windows installer of the same app: 2.0 MiB169Built-in components169 catalog rows, 340 public entry points
3Design languagesAnt Design · Element Plus · shadcn, light and dark
5Target platformsmacOS · Windows · Linux · iOS* · Android*
* experimental

Status: 0.x, the API still changes

Desktop is verified on macOS hardware only. Windows and Linux are cross-compiled and covered by CI smoke tests, but have not been validated systematically on hardware. Mobile is experimental: iOS has been tested in simulators and on an iPhone 12 Pro for WebView, Go-drawn UI, and IPC; Android has run in emulators only. See Platform support.

What it's built around ​

One Go codebase, desktop and mobile ​

App and Surface are the same API on all five platforms. A Surface is a window on desktop and a page in the stack on mobile. Differences between platforms are listed in capability tables; nothing fails without telling you.

System WebView, no bundled engine ​

TanGo uses WKWebView, WebView2, WebKitGTK and Android WebView. Bring any frontend. Go and the page talk through calls, events and streams with backpressure.

Go-drawn GUI ​

Components keep their state and logic in Go; TanGo does layout and drawing. On Apple Silicon macOS, Go-drawn windows start on native layers and can switch to Metal based on input or frame cost. Other platforms default to the GPU for standalone Go-drawn windows or pages, with CPU fallback. Platform support

Three design languages ​

Ant Design, Element Plus and shadcn themes share one set of semantic tokens, each in light and dark.

Native capabilities ​

sys/ packages cover menus, tray, notifications, clipboard and hotkeys on desktop, and permissions, share, biometrics, location and push on mobile. Unsupported calls return ErrUnsupported.

From template to installer ​

tan handles templates, hot reload, builds, packaging (dmg, NSIS, MSIX, deb, rpm, AppImage, Flatpak, apk, aab, ipa), signing and update manifests. It also serves MCP tools for projects and running apps. tan CLI

Where it runs today ​

Platform details →

macOS hardware-verified ​

Cocoa · WKWebView · Core Animation / Metal · CoreText

WebView, Go-drawn and hybrid. Ships as .dmg, with signing and notarization. The minimal WebView sample measured 1.80 MiB as an arm64 DMG.

Windows cross-compiled + CI ​

Win32 · WebView2 · Direct3D 11 · DirectWrite

WebView, Go-drawn and hybrid. Ships as NSIS or MSIX, with Authenticode signing. The minimal WebView sample measured 1.97 MiB as an unsigned amd64 NSIS installer. Direct3D 11 rendering has not been checked on hardware yet.

Linux cross-compiled + CI ​

GTK 3 · WebKitGTK 4.1 · OpenGL 3.3 · FreeType/fontconfig

WebView, Go-drawn and hybrid. Ships as tar.gz, deb, rpm, AppImage or Flatpak. OpenGL was tested with Mesa llvmpipe; CI also smoke-tests Go-drawn UI on headless Wayland. GPU hardware is not yet validated.

iOS experimental ​

UIKit · WKWebView · Metal · CoreText

WebView and Go-drawn pages; builds .app and .ipa. Tested in simulators and on an iPhone 12 Pro. IPC reload recovery and fault fallback passed on hardware; up:post is on by default.

Android experimental ​

View · WebView · OpenGL ES 3.0 · pure-Go text

WebView and Go-drawn pages; builds .apk and .aab. Tested on the emulator (API 36) only.

A real interface ​

Try the components →

TanGo Go GUI: navigation, statistics, filters and a data table

Rendered by examples/ui-gallery: navigation, statistics, filters and a data table.

bash
go install github.com/tangoui/tango/cmd/tan@latest
tan init -template ui hello  # Go-drawn GUI template
cd hello
tan dev                      # opens the window, rebuilds on Go changes
tan build                    # release build in build/
tan package                  # installer for this machine

Documentation language

Chinese is the primary documentation. Some English pages are still being translated; untranslated pages link to the Chinese original.

Released under the MIT License