<p>My app has a desktop version (to be built) and a web version (already built in go and a tiny bit of vanilla JS). Ideally, I'd like to reuse the web code in a desktop app. What library would you use/suggest to do this? My requirements for the GUI are extremely minimal, a couple buttons, file support for jpg,png,mp4,flv, e.g., etc..., and it needs to be as efficient as possible(app must use minimum of CPU resources)</p>
<p>edit: lots of libraries out there seem to have stalled progress(no updates in year(s), lack cross platform support, or are not HTML based), so that's why I'm asking you, to help me sort through this jungle of library uncertainty....:)</p>
<p>edit: I would consider something as minimal as a notification bar. The main thing is that the library works as flawlessly as possible, so i'm leaning against alpha libraries. I'd prefer the most mainstream option but would consider something obscure if it wasn't buggy and played well with system resources. </p>
<p>edit: HTML is not the most important requirement but the least. Most important would be that the library works flawlessly across systems, doesn't hog resources, and isn't buggy. </p>
<hr/>**评论:**<br/><br/>Sythe2o0: <pre><p>What you're looking for, particularly with the demands for flawlessness and video file support, doesn't exist in Go right now. You might want to look into Electron.</p></pre>racketship: <pre><p>thank you! I think you're right. It's sort of a mess trying to do a desktop thing with go right now, there seems to be no clear winner or even a well adopted desktop library. I'd love to even understand which are the front runners but thus far I can't tell which ones are the best choices.</p></pre>williamwaack: <pre><p><a href="https://github.com/avelino/awesome-go#gui" rel="nofollow">Here is the list of the contestants</a>, but I also have no clue if a winner will exist. Most libraries are incomplete or have odd/annoying dependencies.</p></pre>still_unregistered: <pre><p>Did you take a look at <a href="https://github.com/zserge/webview" rel="nofollow">https://github.com/zserge/webview</a> ? Basically you create a local server and access it through the application (webview). Not sure about the sure of certain files (flv for example)</p></pre>racketship: <pre><p>In your opinion, what advantages could this have over <a href="https://github.com/asticode/go-astilectron-demo" rel="nofollow">https://github.com/asticode/go-astilectron-demo</a>?</p></pre>rubyredstone: <pre><p>I think it's more lightweight overall, but probably less features</p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传