From 2141059ace666995f979d2cdd8cb2736d5bb2093 Mon Sep 17 00:00:00 2001 From: John Date: Thu, 7 Dec 2017 10:42:37 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4gtime=E7=9A=84=E5=88=86?= =?UTF-8?q?=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.MD | 4 ++-- g/os/gcache/gcache.go | 2 +- g/os/gfilepool/gfilepool.go | 2 +- g/{util => os}/gtime/time.go | 0 geg/other/test.go | 1 + 5 files changed, 5 insertions(+), 4 deletions(-) rename g/{util => os}/gtime/time.go (100%) 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" )