On Mon, Nov 26, 2018 at 7:07 AM <clementauger...@gmail.com> wrote:
>
> I m looking for a reliable way to determine if a package path string belongs 
> to the stdlib or not.
>
> It happens at runtime, the program can not access its sources.
>
> I m thinking to write package that stores those information into package 
> variables, into a map[go version][]packagesPaths.
>
> Do you have any suggestions to achieve that ?
>
> I digged into go/types, loader etc but i did find the desired api.

On tip, take a look at the internal/goroot package.  It's not
externally accessible, but it may show the kind of thing you are
looking for.

Ian

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to