From 9266d9924911280ad3c29613293641a61a3e7aaa Mon Sep 17 00:00:00 2001 From: dudaodong Date: Sun, 2 Jan 2022 22:12:01 +0800 Subject: [PATCH] add chinese comment for GroupBy func --- README.md | 2 +- README_zh-CN.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9954b8d..892925e 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ English | [简体中文](./README_zh-CN.md) ### Feature - 👏 Comprehensive, efficient and reusable. -- 💪 100+ common go util functions, support string, slice, datetime, net, crypt... +- 💪 140+ common go util functions, support string, slice, datetime, net, crypt... - 💅 Only depend on the go standard library. - 🌍 Unit test for exery exported function. diff --git a/README_zh-CN.md b/README_zh-CN.md index 1b7ce5a..d8fe0ed 100644 --- a/README_zh-CN.md +++ b/README_zh-CN.md @@ -21,7 +21,7 @@ ### 特性 - 👏 全面、高效、可复用 -- 💪 100+常用go工具函数,支持string、slice、datetime、net、crypt... +- 💪 140+常用go工具函数,支持string、slice、datetime、net、crypt... - 💅 只依赖go标准库 - 🌍 所有导出函数单元测试覆盖率100% @@ -413,7 +413,7 @@ func Unique(slice interface{}) interface{} //去重切片 func Union(slices ...interface{}) interface{} //slice并集, 去重 func UpdateByIndex(slice interface{}, index int, value interface{}) (interface{}, error) //在切片中index位置更新value func Without(slice interface{}, values ...interface{}) interface{} //slice去除values -func GroupBy(slice, function interface{}) (interface{}, interface{}) +func GroupBy(slice, function interface{}) (interface{}, interface{}) //根据函数function的逻辑分slice为两组slice ``` #### 10. strutil字符串处理包