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.
3 Likes
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.