From 32a8b96fe28e9a1be131f876b871da09f0aa73cd Mon Sep 17 00:00:00 2001 From: Sergio Angulo Date: Tue, 19 Mar 2019 12:44:29 -0300 Subject: [PATCH] Update document.go https://tip.golang.org/doc/go1.12#cgo (...)Mangled C names are no longer accepted in packages that use Cgo(...) --- xml/document.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml/document.go b/xml/document.go index 5645239f..d0986b0c 100644 --- a/xml/document.go +++ b/xml/document.go @@ -327,7 +327,7 @@ func (document *XmlDocument) CreateTextNode(data string) (text *TextNode) { dataPtr := unsafe.Pointer(&dataBytes[0]) nodePtr := C.xmlNewText((*C.xmlChar)(dataPtr)) if nodePtr != nil { - nodePtr.doc = (*_Ctype_struct__xmlDoc)(document.DocPtr()) + nodePtr.doc = (*C.xmlDoc)(document.DocPtr()) text = NewNode(unsafe.Pointer(nodePtr), document).(*TextNode) } return