可以将Go与其他语言混合使用来创建桌面应用程序吗?

huangapple go评论90阅读模式
英文:

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

huangapple
  • 本文由 发表于 2014年8月8日 01:33:30
  • 转载请务必保留本文链接:https://go.coder-hub.com/25188694.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定