compiler version at runtime code example
Example 1: compiler version at runtime
package main
import (
"fmt"
"runtime"
)
func main() {
version := runtime.Version()
fmt.Printf("Go compiler version = %s", version)
}
Example 2: compiler version at runtime
puts version = RUBY_VERSION