SWIG/Examples/go/callback/
Implementing C++ callbacks in Go
This example illustrates how to use directors to implement C++ callbacks in Go.
See the Go Director
Classes documentation subsection for an in-depth explanation how to use the
director feature.
- example.h. Header with the definition of the Caller and Callback classes.
- example.i. SWIG interface file.
- gocallback.go. Go source with the definition of the GoCallback class.
- runme.go. Sample Go program.