add cgo example code