Standard library / runtime
runtime.Version()
Reports the runtime toolchain version; development builds may use non-release version strings. Expected stdout: 'true\n'.
Formal Syntax & Structure
go syntaxgo
func Version() stringReturn Value
string
Toolchain version string used by this runtime.
Working Example
Example Snippetgo
package main
import ( "fmt" "runtime")
func main() { fmt.Println(runtime.Version() != "") }