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


*/

posted on 2018-03-17 21:25  cucy_to  阅读(1248)  评论(0编辑  收藏  举报

导航