Re: [go-nuts] Obtaining compiled module information at run time

2019-01-21 Thread Maxim Khitrov
Ha! Yes, that looks exactly like what I needed. Thanks for the tip! -Max On Mon, Jan 21, 2019 at 11:44 AM roger peppe wrote: > > Perhaps you were looking for this, which will be available in the upcoming > go1.12 release? > > https://tip.golang.org/pkg/runtime/debug/#ReadBuildInfo > > On Mon, 21

Re: [go-nuts] Obtaining compiled module information at run time

2019-01-21 Thread roger peppe
Perhaps you were looking for this, which will be available in the upcoming go1.12 release? https://tip.golang.org/pkg/runtime/debug/#ReadBuildInfo On Mon, 21 Jan 2019 at 02:50, Maxim Khitrov wrote: > I was working on a tool that needed to know the file system paths and > version information of

[go-nuts] Obtaining compiled module information at run time

2019-01-20 Thread Maxim Khitrov
I was working on a tool that needed to know the file system paths and version information of some of its dependencies from go.mod for code generation. I couldn't find any official way of obtaining these (debug/gosym was close, but didn't work for the current binary on any OS), so I wrote this packa