Created
April 12, 2013 16:22
-
-
Save LarryBattle/5373234 to your computer and use it in GitHub Desktop.
Golang: Find the version of Go during runtime.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
import "runtime" | |
func main() { | |
fmt.Printf("Google Go version : %s", runtime.Version() ) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Documentation here.
http://golang.org/pkg/runtime/#Version