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).

    评论

报告相同问题?

悬赏问题

  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!