package main import ( "fmt" "time" ) func main() { today := time.Now() fmt.Println(today) } /* 2018-03-22 00:18:44.558974 +0800 CST m=+0.000385597 */