SWIG/Examples/go/director/

How to subclass a C++ class with a Go type

See the Go Director Classes documentation subsection for an explanation of this example.