sample lib for cgo