Re:Introduction to Go 1.1
by joeshaw on Tuesday March 26, 2013 @03:29PM
(#5445532)
"We trust that many of our users' programs will also see improvements just by updating their Go installation and recompiling."
Does anyone know if it is possible to determine what version of Go a given binary was compiled with? Perhaps extracting some metadata from an ELF section?
Re:Introduction to Go 1.1
by dmit on Tuesday March 26, 2013 @04:44PM
(#5445964)
There's no guaranteed way unfortunately. If you expect to need this in the future, you can add a flag in your program to print runtime.Version(). But for existing binaries that don't use that function the version will not be included in the binary.
Does anyone know if it is possible to determine what version of Go a given binary was compiled with? Perhaps extracting some metadata from an ELF section?