Files
the-way-to-go_ZH_CN/eBook/examples/chapter_2/version.go
2015-03-03 12:25:25 -05:00

13 lines
141 B
Go

package main
import (
"fmt"
"runtime"
)
func main() {
fmt.Printf("%s", runtime.Version())
}
// Output:
// go1.0.3 or go 1.1