14 ms·
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 existi
by dmit 14y ago
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.
http://golang.org/pkg/runtime/#Version http://golang.org/pkg/runtime/#Version