diff --git a/docs/algorithm.md b/docs/algorithm.md index f96c09c..7ff2da6 100644 --- a/docs/algorithm.md +++ b/docs/algorithm.md @@ -21,6 +21,7 @@ import (
## Index + - [BubbleSort](#BubbleSort) - [InsertionSort](#InsertionSort) - [SelectionSort](#SelectionSort) @@ -31,7 +32,6 @@ import ( - [CountSort](#CountSort) - [BinarySearch](#BinarySearch) - [BinaryIterativeSearch](#BinaryIterativeSearch) - - [LinearSearch](#LinearSearch) - [LRUCache](#LRUCache) diff --git a/docs/algorithm_zh-CN.md b/docs/algorithm_zh-CN.md index 8c59161..d0dfc4e 100644 --- a/docs/algorithm_zh-CN.md +++ b/docs/algorithm_zh-CN.md @@ -29,7 +29,6 @@ import ( - [QuickSort](#QuickSort) - [HeapSort](#HeapSort) - [MergeSort](#MergeSort) - - [CountSort](#CountSort) - [BinarySearch](#BinarySearch) - [BinaryIterativeSearch](#BinaryIterativeSearch) diff --git a/docs/convertor.md b/docs/convertor.md index e0bd358..d2e4d11 100644 --- a/docs/convertor.md +++ b/docs/convertor.md @@ -25,7 +25,6 @@ import ( - [ToBytes](#ToBytes) - [ToChar](#ToChar) - [ToChannel](#ToChannel) - - [ToFloat](#ToFloat) - [ToInt](#ToInt) - [ToJson](#ToJson) diff --git a/docs/convertor_zh-CN.md b/docs/convertor_zh-CN.md index 2ec8d7d..1156292 100644 --- a/docs/convertor_zh-CN.md +++ b/docs/convertor_zh-CN.md @@ -27,7 +27,6 @@ import ( - [ToBytes](#ToBytes) - [ToChar](#ToChar) - [ToChannel](#ToChannel) - - [ToFloat](#ToFloat) - [ToInt](#ToInt) - [ToJson](#ToJson) diff --git a/docs/cryptor.md b/docs/cryptor.md index 2691a6c..6c37035 100644 --- a/docs/cryptor.md +++ b/docs/cryptor.md @@ -47,7 +47,6 @@ import ( - [HmacSha1](#HmacSha1) - [HmacSha256](#HmacSha256) - [HmacSha512](#HmacSha512) - - [Md5String](#Md5String) - [Md5File](#Md5File) - [Sha1](#Sha1) diff --git a/docs/cryptor_zh-CN.md b/docs/cryptor_zh-CN.md index e2898f0..7c65898 100644 --- a/docs/cryptor_zh-CN.md +++ b/docs/cryptor_zh-CN.md @@ -33,7 +33,6 @@ import ( - [AesOfbDecrypt](#AesOfbDecrypt) - [Base64StdEncode](#Base64StdEncode) - [Base64StdDecode](#Base64StdDecode) - - [DesEcbEncrypt](#DesEcbEncrypt) - [DesEcbDecrypt](#DesEcbDecrypt) - [DesCbcEncrypt](#DesCbcEncrypt) @@ -43,7 +42,6 @@ import ( - [DesCfbDecrypt](#DesCfbDecrypt) - [DesOfbEncrypt](#DesOfbEncrypt) - [DesOfbDecrypt](#DesOfbDecrypt) - - [HmacMd5](#HmacMd5) - [HmacSha1](#HmacSha1) - [HmacSha256](#HmacSha256) diff --git a/docs/datastructure/set.md b/docs/datastructure/set.md index 832ee29..edca04c 100644 --- a/docs/datastructure/set.md +++ b/docs/datastructure/set.md @@ -34,7 +34,6 @@ import ( - [IsEmpty](#IsEmpty) - [Union](#Union) - [Intersection](#Intersection) - - [SymmetricDifference](#SymmetricDifference) - [Minus](#Minus) diff --git a/docs/datastructure/set_zh-CN.md b/docs/datastructure/set_zh-CN.md index eeb43de..068ab7c 100644 --- a/docs/datastructure/set_zh-CN.md +++ b/docs/datastructure/set_zh-CN.md @@ -34,7 +34,6 @@ import ( - [IsEmpty](#IsEmpty) - [Union](#Union) - [Intersection](#Intersection) - - [SymmetricDifference](#SymmetricDifference) - [Minus](#Minus) diff --git a/docs/datastructure/tree.md b/docs/datastructure/tree.md index 0ac5423..1365de8 100644 --- a/docs/datastructure/tree.md +++ b/docs/datastructure/tree.md @@ -29,7 +29,6 @@ import ( - [PreOrderTraverse](#BSTree_PreOrderTraverse) - [InOrderTraverse](#BSTree_InOrderTraverse) - [PostOrderTraverse](#BSTree_PostOrderTraverse) - - [LevelOrderTraverse](#BSTree_LevelOrderTraverse) - [Depth](#BSTree_Depth) - [HasSubTree](#BSTree_HasSubTree) diff --git a/docs/datastructure/tree_zh-CN.md b/docs/datastructure/tree_zh-CN.md index a282f5f..310aa6d 100644 --- a/docs/datastructure/tree_zh-CN.md +++ b/docs/datastructure/tree_zh-CN.md @@ -29,7 +29,6 @@ import ( - [PreOrderTraverse](#BSTree_PreOrderTraverse) - [InOrderTraverse](#BSTree_InOrderTraverse) - [PostOrderTraverse](#BSTree_PostOrderTraverse) - - [LevelOrderTraverse](#BSTree_LevelOrderTraverse) - [Depth](#BSTree_Depth) - [HasSubTree](#BSTree_HasSubTree) diff --git a/docs/datetime.md b/docs/datetime.md index 02d8a59..d48ee2b 100644 --- a/docs/datetime.md +++ b/docs/datetime.md @@ -42,7 +42,6 @@ import ( - [GetNightTimestamp](#GetNightTimestamp) - [FormatTimeToStr](#FormatTimeToStr) - [FormatStrToTime](#FormatStrToTime) - - [NewUnixNow](#NewUnixNow) - [NewUnix](#NewUnix) - [NewFormat](#NewFormat) diff --git a/docs/datetime_zh-CN.md b/docs/datetime_zh-CN.md index a86b51c..36b5222 100644 --- a/docs/datetime_zh-CN.md +++ b/docs/datetime_zh-CN.md @@ -41,7 +41,6 @@ import ( - [GetNightTimestamp](#GetNightTimestamp) - [FormatTimeToStr](#FormatTimeToStr) - [FormatStrToTime](#FormatStrToTime) - - [NewUnixNow](#NewUnixNow) - [NewUnix](#NewUnix) - [NewFormat](#NewFormat) diff --git a/docs/fileutil.md b/docs/fileutil.md index 3d061a7..cd5428c 100644 --- a/docs/fileutil.md +++ b/docs/fileutil.md @@ -28,7 +28,6 @@ import ( - [IsExist](#IsExist) - [IsLink](#IsLink) - [IsDir](#IsDir) - - [ListFileNames](#ListFileNames) - [RemoveFile](#RemoveFile) - [ReadFileToString](#ReadFileToString) diff --git a/docs/fileutil_zh-CN.md b/docs/fileutil_zh-CN.md index ff750af..9bcf02d 100644 --- a/docs/fileutil_zh-CN.md +++ b/docs/fileutil_zh-CN.md @@ -28,7 +28,6 @@ import ( - [IsExist](#IsExist) - [IsLink](#IsLink) - [IsDir](#IsDir) - - [ListFileNames](#ListFileNames) - [RemoveFile](#RemoveFile) - [ReadFileToString](#ReadFileToString) diff --git a/docs/mathutil.md b/docs/mathutil.md index b13b096..1975dfc 100644 --- a/docs/mathutil.md +++ b/docs/mathutil.md @@ -28,7 +28,6 @@ import ( - [MaxBy](#MaxBy) - [Min](#Min) - [MinBy](#MaxBy) - - [Percent](#Percent) - [RoundToFloat](#RoundToFloat) - [RoundToString](#RoundToString) diff --git a/docs/mathutil_zh-CN.md b/docs/mathutil_zh-CN.md index 278b1e7..69948db 100644 --- a/docs/mathutil_zh-CN.md +++ b/docs/mathutil_zh-CN.md @@ -28,7 +28,6 @@ import ( - [MaxBy](#MaxBy) - [Min](#Min) - [MinBy](#MaxBy) - - [Percent](#Percent) - [RoundToFloat](#RoundToFloat) - [RoundToString](#RoundToString) diff --git a/docs/netutil.md b/docs/netutil.md index 7da3958..275474a 100644 --- a/docs/netutil.md +++ b/docs/netutil.md @@ -25,7 +25,6 @@ import ( ## Index - [ConvertMapToQueryString](#ConvertMapToQueryString) - [EncodeUrl](#EncodeUrl) - - [GetInternalIp](#GetInternalIp) - [GetIps](#GetIps) - [GetMacAddrs](#GetMacAddrs) @@ -38,7 +37,6 @@ import ( - [SendRequest](#SendRequest) - [DecodeResponse](#DecodeResponse) - [StructToUrlValues](#StructToUrlValues) - - [HttpGetDeprecated](#HttpGet) - [HttpDeleteDeprecated](#HttpDelete) - [HttpPostDeprecated](#HttpPost) diff --git a/docs/netutil_zh-CN.md b/docs/netutil_zh-CN.md index e670d0e..30b3ade 100644 --- a/docs/netutil_zh-CN.md +++ b/docs/netutil_zh-CN.md @@ -30,7 +30,6 @@ import ( - [GetMacAddrs](#GetMacAddrs) - [GetPublicIpInfo](#GetPublicIpInfo) - [GetRequestPublicIp](#GetRequestPublicIp) - - [IsPublicIP](#IsPublicIP) - [IsInternalIP](#IsInternalIP) - [HttpRequest](#HttpRequest) @@ -38,13 +37,11 @@ import ( - [SendRequest](#SendRequest) - [DecodeResponse](#DecodeResponse) - [StructToUrlValues](#StructToUrlValues) - - [HttpGetDeprecated](#HttpGet) - [HttpDeleteDeprecated](#HttpDelete) - [HttpPostDeprecated](#HttpPost) - [HttpPutDeprecated](#HttpPut) - [HttpPatchDeprecated](#HttpPatch) - - [ParseHttpResponse](#ParseHttpResponse)
diff --git a/docs/random.md b/docs/random.md index 8952062..c8923a8 100644 --- a/docs/random.md +++ b/docs/random.md @@ -26,7 +26,6 @@ import ( - [RandInt](#RandInt) - [RandString](#RandString) - [RandUpper](#RandUpper) - - [RandLower](#RandLower) - [RandNumeral](#RandNumeral) - [RandNumeralOrLetter](#RandNumeralOrLetter) diff --git a/docs/random_zh-CN.md b/docs/random_zh-CN.md index 1b905d9..90f1b25 100644 --- a/docs/random_zh-CN.md +++ b/docs/random_zh-CN.md @@ -26,7 +26,6 @@ import ( - [RandInt](#RandInt) - [RandString](#RandString) - [RandUpper](#RandUpper) - - [RandLower](#RandLower) - [RandNumeral](#RandNumeral) - [RandNumeralOrLetter](#RandNumeralOrLetter) diff --git a/docs/slice.md b/docs/slice.md index f9fa91d..9695fd8 100644 --- a/docs/slice.md +++ b/docs/slice.md @@ -172,8 +172,8 @@ import ( func main() { arr := []string{"a", "b", "c", "d", "e"} - res := slice.Chunk(InterfaceSlice(arr), 3) - fmt.Println(res) //[][]any{{"a", "b", "c"}, {"d", "e"}} + res := slice.Chunk((arr), 3) + fmt.Println(res) //[][]string{{"a", "b", "c"}, {"d", "e"}} } ``` diff --git a/docs/slice_zh-CN.md b/docs/slice_zh-CN.md index 873cdfb..379b792 100644 --- a/docs/slice_zh-CN.md +++ b/docs/slice_zh-CN.md @@ -20,8 +20,10 @@ import (
+ ## 目录 + - [AppendIfAbsent](#AppendIfAbsent) - [Contain](#Contain) - [ContainSubSlice](#ContainSubSlice) @@ -46,7 +48,6 @@ import ( - [GroupBy](#GroupBy) - [GroupWith](#GroupWith) - [IntSlice](#IntSlice) - - [InterfaceSlice](#InterfaceSlice) - [Intersection](#Intersection) - [InsertAt](#InsertAt) @@ -72,6 +73,7 @@ import ( - [Without](#Without) - [KeyBy](#KeyBy) +
## 文档 @@ -172,8 +174,8 @@ import ( func main() { arr := []string{"a", "b", "c", "d", "e"} - res := slice.Chunk(InterfaceSlice(arr), 3) - fmt.Println(res) //[][]any{{"a", "b", "c"}, {"d", "e"}} + res := slice.Chunk(arr, 3) + fmt.Println(res) //[][]string{{"a", "b", "c"}, {"d", "e"}} } ``` diff --git a/docs/strutil.md b/docs/strutil.md index 9774517..5578f81 100644 --- a/docs/strutil.md +++ b/docs/strutil.md @@ -36,7 +36,6 @@ import ( - [SnakeCase](#SnakeCase) - [SplitEx](#SplitEx) - [Wrap](#Wrap) - - [Unwrap](#Unwrap) diff --git a/docs/strutil_zh-CN.md b/docs/strutil_zh-CN.md index 9af5ad8..75b9f02 100644 --- a/docs/strutil_zh-CN.md +++ b/docs/strutil_zh-CN.md @@ -36,7 +36,6 @@ import ( - [SnakeCase](#SnakeCase) - [SplitEx](#SplitEx) - [Wrap](#Wrap) - - [Unwrap](#Unwrap) diff --git a/docs/validator.md b/docs/validator.md index e11f544..ba5896f 100644 --- a/docs/validator.md +++ b/docs/validator.md @@ -34,7 +34,6 @@ import ( - [IsCreditCard](#IsCreditCard) - [IsDns](#IsDns) - [IsEmail](#IsEmail) - - [IsEmptyString](#IsEmptyString) - [IsFloatStr](#IsFloatStr) - [IsNumberStr](#IsNumberStr) diff --git a/docs/validator_zh-CN.md b/docs/validator_zh-CN.md index 67b7a04..b2b0862 100644 --- a/docs/validator_zh-CN.md +++ b/docs/validator_zh-CN.md @@ -34,7 +34,6 @@ import ( - [IsCreditCard](#IsCreditCard) - [IsDns](#IsDns) - [IsEmail](#IsEmail) - - [IsEmptyString](#IsEmptyString) - [IsFloatStr](#IsFloatStr) - [IsNumberStr](#IsNumberStr)