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 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器