cgo: add linked list go code