//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) }
//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))) }