moovweb/gokogiri — comment on commit 29bf09ed207a83a6e18e4153f9f3722944fe9585
File: libxml/test/Search_test.go line 12
By zhigangc:

Search and RegisterNamespace are retained as they originally are.

NewXPath is added because it is a cleaner solution when it comes to memory deallocation. We cannot free SearchByCompiledXPath is added because it will speed up a little as we reuse compiled xpath expressions like regex expressions.

EvalToNodes and Eval are taken out since they look more like internal functions.