1
0
mirror of https://github.com/golang/go synced 2024-11-20 05:04:43 -07:00

cmd/go: add GOOS/GOARCH to go version output

Fixes #4492.

% go version
go version devel +6b602ab487d6 Sat Dec 08 14:43:00 2012 +0100 linux/amd64

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6906058
This commit is contained in:
Dave Cheney 2012-12-10 07:05:17 +11:00
parent 10d14b63c2
commit 033e915481

View File

@ -21,5 +21,5 @@ func runVersion(cmd *Command, args []string) {
cmd.Usage()
}
fmt.Printf("go version %s\n", runtime.Version())
fmt.Printf("go version %s %s/%s\n", runtime.Version(), runtime.GOOS, runtime.GOARCH)
}