I have created a basic class that adds two numbers in c#. I have built it into a dll but when attempting to call it in golang I am unsuccessful.
Is this possible currently in golang? If so can someone provide a example how to do this?
Edit: I have included the last attempt I made at doing this. The C# dll is simply a method that adds the two numbers that are passed in.
package main
import (
"fmt"
"syscall"
)
func main() {
var mod = syscall.NewLazyDLL("MathForGo.dll")
var proc = mod.NewProc("Add");
proc.Call(2,3);
fmt.Printf("%v",proc)
}