Hi, I was not referring to the file system path, i m referring to the import package path.
Given the string bytes, reliably tells this is a package that belongs to the stdlib of version Y. I m using the reflect.Type.PkgPath value, to be more specific. Le lundi 26 novembre 2018 16:11:40 UTC+1, Jan Mercl a écrit : > > On Mon, Nov 26, 2018 at 4:07 PM <clement...@gmail.com <javascript:>> > wrote: > > > I m looking for a reliable way to determine if a package path string > belongs to the stdlib or not. > > Check that the package path is bellow runtime.GOROOT(). > -- > > -j > -- 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.