mirror of
https://gitee.com/johng/gf.git
synced 2024-12-04 13:18:01 +08:00
20 lines
292 B
Go
20 lines
292 B
Go
package main
|
|
|
|
import (
|
|
"time"
|
|
"gitee.com/johng/gf/g/os/glog"
|
|
"gitee.com/johng/gf/g/os/gtime"
|
|
)
|
|
|
|
func main() {
|
|
gtime.SetTimeout(3*time.Second, func() {
|
|
glog.SetDebug(false)
|
|
})
|
|
for {
|
|
glog.Debug(gtime.Datetime())
|
|
time.Sleep(time.Second)
|
|
}
|
|
}
|
|
|
|
|