Exemplo n.º 1
0
//Returns the user data of the node as an
//unsafe.Pointer.  Hope you know what you're doing.
func (node *CMarkNode) GetNodeUserData() interface{} {
	return C.cmark_node_get_user_data(node.node)
}
Exemplo n.º 2
0
//Returns the user data of the node as an
//unsafe.Pointer.  Hope you know what you're doing.
func (node *CMarkNode) GetNodeUserData() string {
	data := C.cmark_node_get_user_data(node.node)
	return C.GoString((*C.char)(*(*unsafe.Pointer)(data)))
}