3 ms·
"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 possib
by joeshaw 14y ago
"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?
- dmit 14y agoThere'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. http://golang.org/pkg/runtime/#Version http://golang.org/pkg/runtime/#Version