doubi1797 2017-07-05 15:42
浏览 143

我可以运行带有HTML / JavaScript UI的Go Web服务器作为跨平台应用程序(Linux,Android,iOS,macOS,Windows)

I'm experimenting with Go and as I web developer I want to explore the possibilities of building the same Go web service with the same HTML/JavaScript/CSS UI cross platform for Linux, Android, iOS, macOS, Windows and so on.

I am aware of frameworks such as Electron, Cordova, gomobile but none of them seem to work both with Go and a web UI to generate several of Linux binary, Android APK, Windows exe, macOS dmg, iOS binary (don't know that format yet) without having to code different UIs for different platforms.

Any suggestions on how to solve this?

  • 写回答

1条回答

  • duancan7914 2017-07-05 16:39
    关注

    All of these platforms have browsers to render web content. Frameworks like Cordova wrap a native app around a browser component (web view).

    The missing part is deploying a local go server, that would be the backend of your app. AFAIK, there is no cross platform solution for this yet.

    Also, using a server locally violates it's main purposes (serving many clients concurrently, security of remotely stored information).

    评论

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog