This would mostly be useful for debugging.
package main
import (
"log"
"runtime"
)
func main() {
log.Printf("Running Go: %s", runtime.Version())
}
Output: Running Go: go1.16.6
This would mostly be useful for debugging.
package main
import (
"log"
"runtime"
)
func main() {
log.Printf("Running Go: %s", runtime.Version())
}
Output: Running Go: go1.16.6