mirror of
https://gitee.com/johng/gf.git
synced 2024-12-04 13:18:01 +08:00
16 lines
194 B
Go
16 lines
194 B
Go
package main
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/gogf/gf/os/glog"
|
|
)
|
|
|
|
func main() {
|
|
glog.SetAsync(true)
|
|
for i := 0; i < 10; i++ {
|
|
glog.Async().Print("async log", i)
|
|
}
|
|
time.Sleep(time.Second)
|
|
}
|