I'm looking to start building go project and decided to go with some gui application. So far I've found a package built on top of libui which seems to be written in native go (no html/css based stuffs), called ui. Wanna know if there's something better.
评论:
emdeka87:
shovelpost:
shark1337:I'm looking to start building go project and decided to go with some gui application
I am going to approach this differently. Is this an arbitrary decision? Does the project have any specific requirement that forces it to use a GUI?
If it doesn't, I think you'll be better off using HTML/CSS stuffs. As soon as you introduce C in your project, you can kiss many of Go's advantages goodbye, including the easy cross compiling and delivering a single binary. Of course if you do not care about that stuff and you really dislike Javascript, sure you can go for a GUI.
That said, no matter what you choose for the frontend, I still think the best you can do is to separate the backend stuff and have it be pure Go. Then the frontend can be Go+C madness or Javascript madness. That way, you keep the madness in one place and then you can pick your poison.
JackOhBlades:Lol, I'm a node js developer right now, I don't dislike javascript, I just wanna use native go code ;). I might be switching to c++, do you know a good c++ gui library?
JRMWarfare:Qt5?
JackOhBlades:WxGo is apparently pretty good. I haven't used it myself, but there was a thread a couple weeks ago about it. Don't have the link on hand (on my phone) but you can find it via Google pretty easily.
If you look at "awesome go" on GitHub there is a GUI section.
There's a really cool lib app for building apps in Go/HTML/CSS, pure Go, no JavaScript. There's only a mac driver for it at the moment, with windows and Linux in the works.
