I am trying to integrate a Go application inside a large C# project. By using CGO it is easy to export functions from Go to C#, especially when the Go function return a generic type.
However, I have the need to call a Go function which return a slice of custom type from C#, possibly casting the slice to a C# list or array.
The Go function look like this
func Myfunc(n []int, m float64) []Res{...}
where type Res is
type Res struct {
w IW
p []Prs
ti int64
ms int64
}
type Prs struct {
mmz float64
cge int
itntn int64
}
type IW struct {
ledg float64
redg float64
}
I could not find any documentation or example on the web, can I do this somehow?