Exemplo n.º 1
0
//Sets arbiturary user data for node
func (node *CMarkNode) SetNodeUserData(userData interface{}) bool {
	return success(C.cmark_node_set_user_data(node.node,
		unsafe.Pointer(&userData)))
}
Exemplo n.º 2
0
//Sets arbitrary user data for node
func (node *CMarkNode) SetNodeUserData(userData string) bool {
	cstr := C.CString(userData)
	res := C.cmark_node_set_user_data(node.node, unsafe.Pointer(&cstr))
	return success(res)
}