Why use C.realpath instead of path/filepath.EvalSymlinks in plugin/plugin_dlopen.go?

i am just curious to know that why in plugin/plugin_dlopen.go it uses C.realpath instead of EvalSymLinks from path/filepath package

Usually these sort of “odd” decisions in the standard library are about managing dependencies. The path/filepath package is large and depends in turn on things like Unicode tables. The plugin package is small and there is value in not unnecessarily pulling in extra packages for all users of it. It already has the C dependency.


This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.