I think it probably would in this case. They appear to be substituting just a comparison function. They could instead take a generic type argument that had the desired functions defined. Then you would just need to write the top level wrappers with the different names.
In fact they could probably have done this with a traditional Go interface if they weren't worried about missed optimizations.