On Sun, Sep 17, 2017 at 10:10 PM, Sokolov Yura <funny.fal...@gmail.com> wrote:
>
> Isn't there a way to pass Go callback to Cgo? In this callback you may do 
> anything.

You can't pass a simple callback, but you can have your C code call a
Go function whenever some event occurs.  Start a new thread in C, have
it wait, and have it call Go when appropriate.

Ian

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to