Hi,
I need to use CGO to call a C function in a Go program, where the parameter type is a void pointer. Now I need to pass a struct to the C function, and the struct contains a channel. Additionally, I have a Go callback function that the C function will call, using the data from this struct. The problem is that when I try to access this struct in the Go callback function, I can't retrieve the data. Is this because it is not supported to pass a channel type to C?
The documentation I referred to:
https://pkg.go.dev/runtime/cgo#Handlehttps://groups.google.com/g/golang-nuts/c/PLSIN5jmzpM/m/L9bYGl3oAQAJ