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
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
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