samples of extensions with cgo