Files
the-way-to-go_ZH_CN/eBook/examples/chapter_2/version.go
2013-04-11 19:07:26 -04:00

13 lines
129 B
Go

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