mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 01:21:38 +08:00
02.3.md
This commit is contained in:
12
eBook/examples/chapter_2/version.go
Normal file
12
eBook/examples/chapter_2/version.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"runtime"
|
||||
)
|
||||
|
||||
func main() {
|
||||
fmt.Printf("%s", runtime.Version())
|
||||
}
|
||||
// Output:
|
||||
// go1.0.3 or go 1.1
|
Reference in New Issue
Block a user