英文:
Is it possible to mix Go with other languages to create desktop apps?
问题
我知道可以将C与Go混合使用,但我想知道是否可以与其他语言混合使用。具体而言,我想知道是否可以在Go中编写后端,然后使用Swift或C#来制作桌面应用程序的GUI。
另外,构建这样的应用程序是否常见?性能成本如何?目标是编写一个跨平台的后端,然后使用本地平台工具创建GUI。因此,我将使用Swift和Cocoa来制作OS X的GUI,使用C#和.NET来制作Windows的GUI。这样应用程序的行为和感觉就像本地应用程序一样。
英文:
I know it's possible to mix C with Go, but I was wondering if it was possible to mix with other languages too. Specifically, I was wondering if it was possible to write a backend in Go and then use Swift or C# to make a GUI for a desktop app.
Also, is it common to build apps like that? What are the performance costs like? The goal is to write a cross-platform backend, then use native platform tools to create the GUI. So, I would use Swift and Cocoa to make a GUI for OS X and C# and .NET to make a GUI for Windows. That way the applications behave and feel like native apps.
答案1
得分: 0
不以与Go一起使用C/C++的方式,没有,但是没有什么阻止你使用Go编写后端,并通过http(或stdin/stdout)进行控制。
英文:
Not in the same sense of using C/C++ with Go, no, however nothing is stopping you from writing the backend in Go and controlling it over http (or stdin/stdout).
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论