mirror of
https://gitee.com/johng/gf
synced 2026-07-04 21:03:13 +08:00
example&comment update
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
@ -38,7 +39,7 @@ func main() {
|
||||
fmt.Println(t.UTC().String())
|
||||
fmt.Println(t.In(cstLocal).String())
|
||||
} else {
|
||||
glog.Error(s, err)
|
||||
glog.Error(context.Background(), s, err)
|
||||
}
|
||||
fmt.Println()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user