Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upgpython: leverage runtime/debug.ReadBuildInfo to infer version #114
Comments
|
That is a nice idea :-) I hadn't seen that function before. Do you want to submit that as a PR? Do we need the replace part of the above? How likely is that to happen? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


starting with Go-1.12, there's a nifty function runtime/debug.ReadBuildInfo to extract build informations out of a Go binary.
we could leverage this to display:
(notice the
(devel)string that comes out ofdebug.ReadBuildInfo().Main.Versionthis could be factored into a
gpython/vm.Version()function: