From 119a11eb8d9d0a306885b823933eb522f6325c84 Mon Sep 17 00:00:00 2001 From: John Date: Thu, 11 Apr 2019 23:07:22 +0800 Subject: [PATCH] README updates --- README.MD | 1 + README_ZH.MD | 1 + TODO.MD | 1 + geg/os/gtimer/gtimer-batch.go | 17 +++++++++++++++++ 4 files changed, 20 insertions(+) create mode 100644 geg/os/gtimer/gtimer-batch.go diff --git a/README.MD b/README.MD index b215dfb70..7085c7660 100644 --- a/README.MD +++ b/README.MD @@ -73,6 +73,7 @@ func main() { - [johng](https://gitee.com/johng) - [pibigstar](https://github.com/pibigstar) - [qq1054000800](https://gitee.com/qq1054000800) +- [qq976739120](https://github.com/qq976739120) - [wenzi1](https://gitee.com/wenzi1) - [wxkj001](https://github.com/wxkj001) - [ymrjqyy](https://gitee.com/ymrjqyy) diff --git a/README_ZH.MD b/README_ZH.MD index e29248375..5473bfce5 100644 --- a/README_ZH.MD +++ b/README_ZH.MD @@ -93,6 +93,7 @@ func main() { - [johng](https://gitee.com/johng) - [pibigstar](https://github.com/pibigstar) - [qq1054000800](https://gitee.com/qq1054000800) +- [qq976739120](https://github.com/qq976739120) - [wenzi1](https://gitee.com/wenzi1) - [wxkj001](https://github.com/wxkj001) - [ymrjqyy](https://gitee.com/ymrjqyy) diff --git a/TODO.MD b/TODO.MD index a86547377..e456a8c6c 100644 --- a/TODO.MD +++ b/TODO.MD @@ -43,6 +43,7 @@ 1. 添加Save/Replace/BatchSave/BatchReplace方法对sqlite数据库的支持; 1. 添加sqlite数据库的单元测试用例; 1. gredis增加cluster支持; +1. gset.Add/Remove/Contains方法增加批量操作支持; # DONE 1. gconv完善针对不同类型的判断,例如:尽量减少sprintf("%v", xxx)来执行string类型的转换; diff --git a/geg/os/gtimer/gtimer-batch.go b/geg/os/gtimer/gtimer-batch.go new file mode 100644 index 000000000..c5d8dcfb9 --- /dev/null +++ b/geg/os/gtimer/gtimer-batch.go @@ -0,0 +1,17 @@ +package main + +import ( + "fmt" + "github.com/gogf/gf/g/os/gtimer" + "time" +) + +func main() { + for i := 0; i < 100000; i++ { + gtimer.Add(time.Second, func() { + + }) + } + fmt.Println("start") + time.Sleep(48*time.Hour) +}