Snapshot của andlabs/ui: 8.4k★ · Go. Platform-native GUI library for Go.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
This is a library that aims to provide simple GUI software development in Go. It is based on my libui, a simple cross-platform library that does the same thing, but written in C.
It runs on/requires:
Windows: cgo, Windows Vista SP2 with Platform Update and newer
It currently aligns to libui's Alpha 4.1, with only a small handful of functions not available.
Status
Package ui is currently mid-alpha software. Much of what is currently present runs stabily enough for the examples and perhaps some small programs to work, but the stability is still a work-in-progress, much of what is already there is not feature-complete, some of it will be buggy on certain platforms, and there's a lot of stuff missing. The libui README has more information.
Installation
Once you have the dependencies installed, a simple
go get github.com/andlabs/ui/...
should suffice.
Documentation
The in-code documentation is sufficient to get started, but needs improvement.
Some simple example programs are in the examples directory. You can go build each of them individually.
Windows manifests
Package ui requires a manifest that specifies Common Controls v6 to run on Windows. It should at least also state as supported Windows Vista and Windows 7, though to avoid surprises with other packages (or with Go itself; see this issue) you should state compatibility with higher versions of Windows too.
The simplest option is provided as a subpackage winmanifest; you can simply import it without a name, and it'll set things up properly:
import _ "github.com/andlabs/ui/winmanifest"
You do not have to worry about importing this in non-Windows-only files; it does nothing on non-Windows platforms.
If you wish to use your own manifest instead, you can use the one in winmanifest as a template to see what's required and how. You'll need to specify the template in a .rc file and use windres in MinGW-w64 to generate a .syso file as follows:
You may also be interested in the github.com/akavel/rsrc and github.com/josephspurrier/goversioninfo packages, which provide other Go-like options for embedding the manifest.
Note that if you choose to ship a manifest as a separate .exe.manifest file instead of embedding it in your binary, and you use Cygwin or MSYS2 as the source of your MinGW-w64, Cygwin and MSYS2 instruct gcc to embed a default manifest of its own if none is specified. This default will override your manifest file! See this issue for more details, including workaround instructions.
macOS program execution
If you run a macOS program binary directly from the command line, it will start in the background. This is intentional; see this for more details.
andlabs/ui có 8.4k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/andlabs/ui. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
andlabs/ui có tag gì không?
Bản đồng bộ chưa ghi nhận topic GitHub nào cho andlabs/ui. GitHub topics hiển thị ở thanh bên phải trang repo — đó là nơi đáng kiểm tra nhất.
andlabs/ui còn đang phát triển không?
Commit gần nhất trên andlabs/ui là 4.5 năm trước (theo timestamp GitHub). Repo có 633 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
andlabs/ui là gì?
andlabs/ui (andlabs/ui) là dự án Go trên GitHub. Theo mô tả gốc: Platform-native GUI library for Go.
andlabs/ui viết bằng ngôn ngữ gì?
andlabs/ui chủ yếu viết bằng Go. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về ui?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về ui.