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#Handle
https://groups.google.com/g/golang-nuts/c/PLSIN5jmzpM/m/L9bYGl3oAQAJ

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/golang-nuts/14bd925b-19ca-4644-9200-315b99dd5029n%40googlegroups.com.

Reply via email to