Go 1.6: runtime error: cgo argument has Go pointer to Go pointer
I get a panic with Go 1.6. "runtime error: cgo argument has Go pointer to Go pointer" It was working fine with older versions of Go.
I can repro this issue on go version go1.6 linux/amd64 but not on 1.4.2
@erjoalgo https://golang.org/doc/go1.6#cgo
Per https://github.com/moovweb/gokogiri/pull/93#issuecomment-215582446, switching to import "github.com/jbowtie/gokogiri" worked for me.
yes using "github.com/jbowtie/gokogiri" "github.com/jbowtie/gokogiri/xpath"
solved the problem on Go 1.7 Linux/Amd64
I switched the repo from moovweb to jbowtie and working fine now, thanks
I see there was a commit in 2018 yet this issue is still not fixed - when I run the example in the readme (on the latest version of Go) there is still a cgo argument has Go pointer to Go pointer error. I can't even run println(doc.String()).
It seems like Gokogiri is currently unusable.
Is the maintainer going to fix this? If I make a PR with a fix, will it be merged?
If not, is the jbowtie fork our only option? If not, can you recommend a more maintained alternative (using Go) for parsing, and more importantly, updating complex XML with XPath?
Thanks, Michael.