Is there a way to tell what go version a binary was built with?
I have multiple go instances on my workstation, so I want to verify that the correct one was used.
Is there a way to tell what go version a binary was built with?
I have multiple go instances on my workstation, so I want to verify that the correct one was used.
Use
go version <path>
.Use runtime.Version() at runtime to figure out what version of Go your binary was built with:
The following command should do it: