can't use reflection because my struct is in a non-local library and I can't add a method to it.
So instead I put a map string to FilterFunc in the shared library and then add my FilterFunc(s) during a package Init() call.