1.1获取go运行版本信息
package main
import (
"log"
"runtime"
)
const info = `
Application %s starting.
The binary was build by GO: %s`
func main() {
log.Printf(info, "Example", runtime.Version())
}
/*
2018/03/17 21:09:39
Application Example starting.
The binary was build by GO: go1.9
*/