Passing callbacks and pointers to Cgo

1 · Eli Bendersky · July 15, 2019, 1:15 p.m.
Cgo enables Go programs to invoke C libraries or any other library that exposes a C API. As such, it's a important part of a Go programmer's toolbox. Using Cgo can be tricky, however, especially when passing pointers and callback functions between Go and C code. This post discusses an …...