1
// Copyright 2011 The Go Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style
3
// license that can be found in the LICENSE file.
12
var cmdVersion = &Command{
15
Short: "print Go version",
16
Long: `Version prints the Go version, as reported by runtime.Version.`,
19
func runVersion(cmd *Command, args []string) {
24
fmt.Printf("go version %s %s/%s\n", runtime.Version(), runtime.GOOS, runtime.GOARCH)