rodrigocfd / windigo

Windows API and GUI in idiomatic Go.
https://pkg.go.dev/github.com/rodrigocfd/windigo
MIT License
405 stars 22 forks source link

Any plan to support Mac OS? #12

Closed pigLoveRabbit520 closed 2 years ago

pigLoveRabbit520 commented 2 years ago

This repo is great! Any tiny gui library that supports mac os like this repo?

rodrigocfd commented 2 years ago

The gui package is built directly on top of the Win32 bindings, that's why it's tiny.

In order to have a gui package for MacOS you'd need native MacOS bindings first. It would be a completely different project. I know there are some packages around, but I don't really have any knowledge of them, because I don't have a Mac computer.

Anyway, there are a couple multi-platform gui libraries, which supposedly work for both Windows and MacOS, but they're way more complex because building a multi-platform gui is a very complex task.

CarsonSlovoka commented 1 year ago

I suggest looking in the direction of CEF(Chromium Embedded Framework), which can use web pages to present UI. There is webview2example project, another project available on windows.

I think macOS will have a similar project in the future