Share .Net libraries with GO

I am looking for a way to write a GO application using the .NET interface. Or vice versa, a .NET application that calls into a GO library.

Anyway, for P'Invoke GO or ".Net'Invoke" from GO?

If not, what is the best alternative? The best idea I have now is RPC.

+3
source share
1 answer

Hosting the .NET CLR host in a process is possible. You could theoretically write a DLL called from C that could host such a CLR.

eg. This sample project demonstrates the creation of the CLR inside a C ++ application.

(, ICLRRuntimeInfo .) , DLL, C, "" - Go.

,

  • , , ( )
  • ++ , C (, , , "" w.r.t vanilla C)
+2

All Articles