Using Golang and c# together?


(Nekko Master) #1

I am working on a project where i have device which i can control using c# DLLs provided by the vendor. I want golang for networking where it would be used to make connection with other PC on network. Problem is we can’t directly use C# dll in golang. So , what are the possible ways to use c# and golang together ?


(Johan Dahl) #2

https://github.com/matiasinsaurralde/go-dotnet claims to do this. Have no experience with this package myself.


(Nekko Master) #3

thanks :smile: . I am looking for ways to do it logically. I also came across same git repo but there is not point in using someone else API. ( creates a bottle neck in learning :unamused:)

IMO , one way could be using Sockets to connect 2 programs i.e Golang and C# , but i am not sure about it efficiency and security.


(George Calianu) #4

If you want to call something from a dll also look over this resource.