37,038
stars
+29
1,932
forks
162
watchers
3,239
prs
2,661
issues
389
releases
576
discussions
README
Wails
使用 Go 和 Web 技术构建桌面应用程序。
English · 简体中文 · 日本語 ·
한국어 · Español · Português ·
Русский · Francais · Uzbek · Deutsch ·
Türkçe · Bahasa Indonesia
Wails v3.0.0
Wails v3.0.0 是面向 Windows、macOS 和 Linux 桌面应用程序的稳定版本。 Android 和 iOS 支持仍处于实验阶段,不在稳定桌面版的兼容性保证范围内。
sh
go install github.com/wailsapp/wails/v3/cmd/[email protected]
wails.io · v2.wails.io
内容目录
- 内容目录
- 项目介绍
- 功能
- 路线图
- 快速入门
- 赞助商
- 常见问题
- 星星增长趋势
- 贡献者
- 许可证
- 灵感
项目介绍
为 Go 程序提供 Web 界面的传统方法是通过内置 Web 服务器。Wails 提供了一种不同的方法:它提供了将 Go 代码和 Web
前端一起打包成单个二进制文件的能力。通过提供的工具,可以很轻松的完成项目的创建、编译和打包。你所要做的就是发挥创造力!
功能
- 后端使用标准 Go
- 使用您已经熟悉的任何前端技术来构建您的 UI
- 使用内置模板为您的 Go 程序快速创建丰富的前端
- 从 Javascript 轻松调用 Go 方法
- 为您的 Go 结构体和方法自动生成 Typescript 声明
- 原生对话框和菜单
- 支持现代半透明和“磨砂窗”效果
- Go 和 Javascript 之间统一的事件系统
- 强大的命令行工具,可快速生成和构建您的项目
- 跨平台
- 使用原生渲染引擎 - _没有嵌入浏览器_!
路线图
项目路线图可在 此处 找到。在提出增强请求之前请查阅此内容。
快速入门
使用说明在 官网。
赞助商
这个项目由以下这些人或者公司支持:
常见问题
- 它是 Electron 的替代品吗?
取决于您的要求。它旨在使 Go 程序员可以轻松制作轻量级桌面应用程序或在其现有应用程序中添加前端。尽管 Wails 当前不提供对诸如菜单之类的原生元素的钩子,但将来可能会改变。
- 这个项目针对的是哪些人?
希望将 HTML / JS / CSS 前端与其应用程序捆绑在一起的程序员,而不是借助创建服务并打开浏览器进行查看的方式。
- 名字怎么来的?
当我看到 WebView 时,我想"我真正想要的是围绕构建 WebView 应用程序工作,有点像 Rails 对于 Ruby"。因此,最初它是一个文字游戏(Webview on
Rails)。碰巧也是我来自的 国家 的英文名字的同音。所以就是它了。
星星增长趋势
贡献者
贡献者列表对于 README 文件来说太大了!所有为这个项目做出贡献的了不起的人在这里都有自己的页面。
许可证
灵感
项目灵感主要来自以下专辑:
- Manic Street Preachers - Resistance Is Futile
- Manic Street Preachers - This Is My Truth, Tell Me Yours
- The Midnight - Endless Summer
- Gary Newman - Savage (Songs from a Broken World)
- Steve Vai - Passion & Warfare
- Ben Howard - Every Kingdom
- Ben Howard - Noonday Dream
- Adwaith - Melyn
- Gwidaith Hen Fran - Cedors Hen Wrach
- Metallica - Metallica
- Bloc Party - Silent Alarm
- Maxthor - Another World
- Alun Tan Lan - Y DistawrwyddTop issues
#2792Display scaling on Linux18 comments · 2023-07-24#4589[v3] wails3 package failed(v3.0.0-alpha.27 + go1.25.1 + windows 11)16 comments · 2025-09-18#3212binary support14 comments · 2024-01-20#2021Disable Pinch Zoom14 comments · 2022-10-28#1997Multiple Containers in the same Window14 comments · 2022-10-20#4457`wails doctor` falsely reports `libwebkit | webkit2gtk4.0-devel` installed on Fedora 4112 comments · 2025-07-28#3301Improve Error Handling11 comments · 2024-03-08#6121[v3] macos open webinspector after beta 198 comments · 2026-09-14
Discussions
#6560Proposal: Explore GPUI/GPUIX as an Optional Cross-Platform Renderer for Wails v30 comments · 2026-11-06#6553[v3/Linux] Use one application ID across packaging, runtime and services0 comments · 2026-11-04#6542Questions and concerns about the pace of development1 comments · 2026-11-02#6527Video in your blog post not playing in iPad3 comments · 2026-10-31#6376Congratulations on the release of Wails v3! Here is Tingly-Box.1 comments · 2026-10-27#6370Congratulations on v3 GA!1 comments · 2026-10-26#6331Updating CLI in windows0 comments · 2026-10-22#6235Vectile - private, fully local RAG desktop app for Windows, macOS, and Linux. It indexes your personal knowledge into a local SQLite database and combines vector search with full-text search, letting you find information by meaning rather than exact words.0 comments · 2026-10-05
Latest release
Wails v3.1.0 v3.1.0 2026-11-01Wails v3 Weekly Release - v3.1.0 Added - add experimental CGO-free macOS and Linux backends in PR by @taliesin-ai - native YAML builds, portable packaging and signing in PR by @taliesin-ai Changed - avoid copying discarded desktop metadata in PR by @taliesin-ai - format content lengths without fmt in PR by @taliesin-ai - select index roots without collecting candidates in PR by @taliesin-ai - reuse non-seekable file copy buffers in PR by @taliesin-ai - avoid allocating a reader for sniffing prefixes in PR by @taliesin-ai - skip MIME sniff reads for known extensions in PR by @taliesin-ai -