diff --git a/README.MD b/README.MD index ab7dc17ab..bf4583028 100644 --- a/README.MD +++ b/README.MD @@ -49,13 +49,13 @@ import "gitee.com/johng/gf/g/xxx" │   │   ├── gfilepool 文件指针池 │   │   ├── gfilespace 文件碎片管理 │   │   ├── glog 日志管理 - │   │   └── gmmap MMAP文件内存映射 + │   │ ├── gmmap MMAP文件内存映射 + │   │   └── gtime 时间管理 │   │   │   └── util 【常用工具】 │   ├── gpage 分页 │   ├── grand 随机数 │   ├── gregx 正则表达式 - │   ├── gtime 时间管理 │   └── gutil 其他工具 │   ├── geg 【框架示例】 diff --git a/g/os/gcache/gcache.go b/g/os/gcache/gcache.go index 98123abe5..0f1c99b34 100644 --- a/g/os/gcache/gcache.go +++ b/g/os/gcache/gcache.go @@ -3,7 +3,7 @@ package gcache import ( "sync" "time" - "gitee.com/johng/gf/g/util/gtime" + "gitee.com/johng/gf/g/os/gtime" "gitee.com/johng/gf/g/encoding/ghash" ) diff --git a/g/os/gfilepool/gfilepool.go b/g/os/gfilepool/gfilepool.go index 960b26283..d06c51090 100644 --- a/g/os/gfilepool/gfilepool.go +++ b/g/os/gfilepool/gfilepool.go @@ -4,7 +4,7 @@ import ( "os" "time" "strconv" - "gitee.com/johng/gf/g/util/gtime" + "gitee.com/johng/gf/g/os/gtime" "gitee.com/johng/gf/g/container/gmap" "gitee.com/johng/gf/g/container/glist" "sync/atomic" diff --git a/g/util/gtime/time.go b/g/os/gtime/time.go similarity index 100% rename from g/util/gtime/time.go rename to g/os/gtime/time.go diff --git a/geg/other/test.go b/geg/other/test.go index 50e595a64..fff367cb3 100644 --- a/geg/other/test.go +++ b/geg/other/test.go @@ -4,6 +4,7 @@ import ( "sync" "fmt" "strconv" + "time" )