douse8732 2016-06-10 19:02
浏览 316
已采纳

如何在C#中执行Go函数

Is there any way to execute a Go function from C#? For Python I would use Ironpython for example.

I know that I could spawn a process to execute a Go script, but I don't really want to fallback to such a solution, if possible.

A Google search didn't reveal anything, so is there any way to do that using an API? Or do I have to fallback on processes?

  • 写回答

3条回答 默认 最新

  • dongping4901 2016-06-10 19:31
    关注

    I don't think you're going to have much luck finding what you're looking for. Go is statically linked and C# doesn't support that.

    From C#, calling a pre-compiled executable and reading the output is the easiest thing I can think of.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 shape_predictor_68_face_landmarks.dat
  • ¥15 slam rangenet++配置
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料
  • ¥15 使用R语言marginaleffects包进行边际效应图绘制
  • ¥20 usb设备兼容性问题