]> Cypherpunks repositories - gostls13.git/commit
cmd/dist, runtime: make runtime version available as runtime.buildVersion
authorShenghou Ma <minux@golang.org>
Sun, 6 Dec 2015 22:35:12 +0000 (17:35 -0500)
committerMinux Ma <minux@golang.org>
Wed, 16 Dec 2015 05:42:40 +0000 (05:42 +0000)
commit86f1944e86ae3e07651dcbfafee37f1e3b0a917d
tree128ffb831373ababa36b308cba3ef508a0156eaa
parent68c6aad58b5062e3dd2bc97a124871dd767168cc
cmd/dist, runtime: make runtime version available as runtime.buildVersion

So that there is a uniformed way to retrieve Go version from a Go
binary, starting from Go 1.4 (see https://golang.org/cl/117040043)

Updates #13507.

Change-Id: Iaa2b14fca2d8c4d883d3824e2efc82b3e6fe2624
Reviewed-on: https://go-review.googlesource.com/17459
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/dist/buildruntime.go
src/runtime/proc.go