我可以运行带有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?

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