1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-12 16:52:29 +08:00

docs: format index content

This commit is contained in:
dudaodong
2022-11-26 17:37:09 +08:00
parent be148e07ba
commit 80cbbdc787
26 changed files with 8 additions and 33 deletions

View File

@@ -21,6 +21,7 @@ import (
<div STYLE="page-break-after: always;"></div> <div STYLE="page-break-after: always;"></div>
## Index ## Index
- [BubbleSort](#BubbleSort) - [BubbleSort](#BubbleSort)
- [InsertionSort](#InsertionSort) - [InsertionSort](#InsertionSort)
- [SelectionSort](#SelectionSort) - [SelectionSort](#SelectionSort)
@@ -31,7 +32,6 @@ import (
- [CountSort](#CountSort) - [CountSort](#CountSort)
- [BinarySearch](#BinarySearch) - [BinarySearch](#BinarySearch)
- [BinaryIterativeSearch](#BinaryIterativeSearch) - [BinaryIterativeSearch](#BinaryIterativeSearch)
- [LinearSearch](#LinearSearch) - [LinearSearch](#LinearSearch)
- [LRUCache](#LRUCache) - [LRUCache](#LRUCache)

View File

@@ -29,7 +29,6 @@ import (
- [QuickSort](#QuickSort) - [QuickSort](#QuickSort)
- [HeapSort](#HeapSort) - [HeapSort](#HeapSort)
- [MergeSort](#MergeSort) - [MergeSort](#MergeSort)
- [CountSort](#CountSort) - [CountSort](#CountSort)
- [BinarySearch](#BinarySearch) - [BinarySearch](#BinarySearch)
- [BinaryIterativeSearch](#BinaryIterativeSearch) - [BinaryIterativeSearch](#BinaryIterativeSearch)

View File

@@ -25,7 +25,6 @@ import (
- [ToBytes](#ToBytes) - [ToBytes](#ToBytes)
- [ToChar](#ToChar) - [ToChar](#ToChar)
- [ToChannel](#ToChannel) - [ToChannel](#ToChannel)
- [ToFloat](#ToFloat) - [ToFloat](#ToFloat)
- [ToInt](#ToInt) - [ToInt](#ToInt)
- [ToJson](#ToJson) - [ToJson](#ToJson)

View File

@@ -27,7 +27,6 @@ import (
- [ToBytes](#ToBytes) - [ToBytes](#ToBytes)
- [ToChar](#ToChar) - [ToChar](#ToChar)
- [ToChannel](#ToChannel) - [ToChannel](#ToChannel)
- [ToFloat](#ToFloat) - [ToFloat](#ToFloat)
- [ToInt](#ToInt) - [ToInt](#ToInt)
- [ToJson](#ToJson) - [ToJson](#ToJson)

View File

@@ -47,7 +47,6 @@ import (
- [HmacSha1](#HmacSha1) - [HmacSha1](#HmacSha1)
- [HmacSha256](#HmacSha256) - [HmacSha256](#HmacSha256)
- [HmacSha512](#HmacSha512) - [HmacSha512](#HmacSha512)
- [Md5String](#Md5String) - [Md5String](#Md5String)
- [Md5File](#Md5File) - [Md5File](#Md5File)
- [Sha1](#Sha1) - [Sha1](#Sha1)

View File

@@ -33,7 +33,6 @@ import (
- [AesOfbDecrypt](#AesOfbDecrypt) - [AesOfbDecrypt](#AesOfbDecrypt)
- [Base64StdEncode](#Base64StdEncode) - [Base64StdEncode](#Base64StdEncode)
- [Base64StdDecode](#Base64StdDecode) - [Base64StdDecode](#Base64StdDecode)
- [DesEcbEncrypt](#DesEcbEncrypt) - [DesEcbEncrypt](#DesEcbEncrypt)
- [DesEcbDecrypt](#DesEcbDecrypt) - [DesEcbDecrypt](#DesEcbDecrypt)
- [DesCbcEncrypt](#DesCbcEncrypt) - [DesCbcEncrypt](#DesCbcEncrypt)
@@ -43,7 +42,6 @@ import (
- [DesCfbDecrypt](#DesCfbDecrypt) - [DesCfbDecrypt](#DesCfbDecrypt)
- [DesOfbEncrypt](#DesOfbEncrypt) - [DesOfbEncrypt](#DesOfbEncrypt)
- [DesOfbDecrypt](#DesOfbDecrypt) - [DesOfbDecrypt](#DesOfbDecrypt)
- [HmacMd5](#HmacMd5) - [HmacMd5](#HmacMd5)
- [HmacSha1](#HmacSha1) - [HmacSha1](#HmacSha1)
- [HmacSha256](#HmacSha256) - [HmacSha256](#HmacSha256)

View File

@@ -34,7 +34,6 @@ import (
- [IsEmpty](#IsEmpty) - [IsEmpty](#IsEmpty)
- [Union](#Union) - [Union](#Union)
- [Intersection](#Intersection) - [Intersection](#Intersection)
- [SymmetricDifference](#SymmetricDifference) - [SymmetricDifference](#SymmetricDifference)
- [Minus](#Minus) - [Minus](#Minus)

View File

@@ -34,7 +34,6 @@ import (
- [IsEmpty](#IsEmpty) - [IsEmpty](#IsEmpty)
- [Union](#Union) - [Union](#Union)
- [Intersection](#Intersection) - [Intersection](#Intersection)
- [SymmetricDifference](#SymmetricDifference) - [SymmetricDifference](#SymmetricDifference)
- [Minus](#Minus) - [Minus](#Minus)

View File

@@ -29,7 +29,6 @@ import (
- [PreOrderTraverse](#BSTree_PreOrderTraverse) - [PreOrderTraverse](#BSTree_PreOrderTraverse)
- [InOrderTraverse](#BSTree_InOrderTraverse) - [InOrderTraverse](#BSTree_InOrderTraverse)
- [PostOrderTraverse](#BSTree_PostOrderTraverse) - [PostOrderTraverse](#BSTree_PostOrderTraverse)
- [LevelOrderTraverse](#BSTree_LevelOrderTraverse) - [LevelOrderTraverse](#BSTree_LevelOrderTraverse)
- [Depth](#BSTree_Depth) - [Depth](#BSTree_Depth)
- [HasSubTree](#BSTree_HasSubTree) - [HasSubTree](#BSTree_HasSubTree)

View File

@@ -29,7 +29,6 @@ import (
- [PreOrderTraverse](#BSTree_PreOrderTraverse) - [PreOrderTraverse](#BSTree_PreOrderTraverse)
- [InOrderTraverse](#BSTree_InOrderTraverse) - [InOrderTraverse](#BSTree_InOrderTraverse)
- [PostOrderTraverse](#BSTree_PostOrderTraverse) - [PostOrderTraverse](#BSTree_PostOrderTraverse)
- [LevelOrderTraverse](#BSTree_LevelOrderTraverse) - [LevelOrderTraverse](#BSTree_LevelOrderTraverse)
- [Depth](#BSTree_Depth) - [Depth](#BSTree_Depth)
- [HasSubTree](#BSTree_HasSubTree) - [HasSubTree](#BSTree_HasSubTree)

View File

@@ -42,7 +42,6 @@ import (
- [GetNightTimestamp](#GetNightTimestamp) - [GetNightTimestamp](#GetNightTimestamp)
- [FormatTimeToStr](#FormatTimeToStr) - [FormatTimeToStr](#FormatTimeToStr)
- [FormatStrToTime](#FormatStrToTime) - [FormatStrToTime](#FormatStrToTime)
- [NewUnixNow](#NewUnixNow) - [NewUnixNow](#NewUnixNow)
- [NewUnix](#NewUnix) - [NewUnix](#NewUnix)
- [NewFormat](#NewFormat) - [NewFormat](#NewFormat)

View File

@@ -41,7 +41,6 @@ import (
- [GetNightTimestamp](#GetNightTimestamp) - [GetNightTimestamp](#GetNightTimestamp)
- [FormatTimeToStr](#FormatTimeToStr) - [FormatTimeToStr](#FormatTimeToStr)
- [FormatStrToTime](#FormatStrToTime) - [FormatStrToTime](#FormatStrToTime)
- [NewUnixNow](#NewUnixNow) - [NewUnixNow](#NewUnixNow)
- [NewUnix](#NewUnix) - [NewUnix](#NewUnix)
- [NewFormat](#NewFormat) - [NewFormat](#NewFormat)

View File

@@ -28,7 +28,6 @@ import (
- [IsExist](#IsExist) - [IsExist](#IsExist)
- [IsLink](#IsLink) - [IsLink](#IsLink)
- [IsDir](#IsDir) - [IsDir](#IsDir)
- [ListFileNames](#ListFileNames) - [ListFileNames](#ListFileNames)
- [RemoveFile](#RemoveFile) - [RemoveFile](#RemoveFile)
- [ReadFileToString](#ReadFileToString) - [ReadFileToString](#ReadFileToString)

View File

@@ -28,7 +28,6 @@ import (
- [IsExist](#IsExist) - [IsExist](#IsExist)
- [IsLink](#IsLink) - [IsLink](#IsLink)
- [IsDir](#IsDir) - [IsDir](#IsDir)
- [ListFileNames](#ListFileNames) - [ListFileNames](#ListFileNames)
- [RemoveFile](#RemoveFile) - [RemoveFile](#RemoveFile)
- [ReadFileToString](#ReadFileToString) - [ReadFileToString](#ReadFileToString)

View File

@@ -28,7 +28,6 @@ import (
- [MaxBy](#MaxBy) - [MaxBy](#MaxBy)
- [Min](#Min) - [Min](#Min)
- [MinBy](#MaxBy) - [MinBy](#MaxBy)
- [Percent](#Percent) - [Percent](#Percent)
- [RoundToFloat](#RoundToFloat) - [RoundToFloat](#RoundToFloat)
- [RoundToString](#RoundToString) - [RoundToString](#RoundToString)

View File

@@ -28,7 +28,6 @@ import (
- [MaxBy](#MaxBy) - [MaxBy](#MaxBy)
- [Min](#Min) - [Min](#Min)
- [MinBy](#MaxBy) - [MinBy](#MaxBy)
- [Percent](#Percent) - [Percent](#Percent)
- [RoundToFloat](#RoundToFloat) - [RoundToFloat](#RoundToFloat)
- [RoundToString](#RoundToString) - [RoundToString](#RoundToString)

View File

@@ -25,7 +25,6 @@ import (
## Index ## Index
- [ConvertMapToQueryString](#ConvertMapToQueryString) - [ConvertMapToQueryString](#ConvertMapToQueryString)
- [EncodeUrl](#EncodeUrl) - [EncodeUrl](#EncodeUrl)
- [GetInternalIp](#GetInternalIp) - [GetInternalIp](#GetInternalIp)
- [GetIps](#GetIps) - [GetIps](#GetIps)
- [GetMacAddrs](#GetMacAddrs) - [GetMacAddrs](#GetMacAddrs)
@@ -38,7 +37,6 @@ import (
- [SendRequest](#SendRequest) - [SendRequest](#SendRequest)
- [DecodeResponse](#DecodeResponse) - [DecodeResponse](#DecodeResponse)
- [StructToUrlValues](#StructToUrlValues) - [StructToUrlValues](#StructToUrlValues)
- [HttpGet<sup>Deprecated</sup>](#HttpGet) - [HttpGet<sup>Deprecated</sup>](#HttpGet)
- [HttpDelete<sup>Deprecated</sup>](#HttpDelete) - [HttpDelete<sup>Deprecated</sup>](#HttpDelete)
- [HttpPost<sup>Deprecated</sup>](#HttpPost) - [HttpPost<sup>Deprecated</sup>](#HttpPost)

View File

@@ -30,7 +30,6 @@ import (
- [GetMacAddrs](#GetMacAddrs) - [GetMacAddrs](#GetMacAddrs)
- [GetPublicIpInfo](#GetPublicIpInfo) - [GetPublicIpInfo](#GetPublicIpInfo)
- [GetRequestPublicIp](#GetRequestPublicIp) - [GetRequestPublicIp](#GetRequestPublicIp)
- [IsPublicIP](#IsPublicIP) - [IsPublicIP](#IsPublicIP)
- [IsInternalIP](#IsInternalIP) - [IsInternalIP](#IsInternalIP)
- [HttpRequest](#HttpRequest) - [HttpRequest](#HttpRequest)
@@ -38,13 +37,11 @@ import (
- [SendRequest](#SendRequest) - [SendRequest](#SendRequest)
- [DecodeResponse](#DecodeResponse) - [DecodeResponse](#DecodeResponse)
- [StructToUrlValues](#StructToUrlValues) - [StructToUrlValues](#StructToUrlValues)
- [HttpGet<sup>Deprecated</sup>](#HttpGet) - [HttpGet<sup>Deprecated</sup>](#HttpGet)
- [HttpDelete<sup>Deprecated</sup>](#HttpDelete) - [HttpDelete<sup>Deprecated</sup>](#HttpDelete)
- [HttpPost<sup>Deprecated</sup>](#HttpPost) - [HttpPost<sup>Deprecated</sup>](#HttpPost)
- [HttpPut<sup>Deprecated</sup>](#HttpPut) - [HttpPut<sup>Deprecated</sup>](#HttpPut)
- [HttpPatch<sup>Deprecated</sup>](#HttpPatch) - [HttpPatch<sup>Deprecated</sup>](#HttpPatch)
- [ParseHttpResponse](#ParseHttpResponse) - [ParseHttpResponse](#ParseHttpResponse)
<div STYLE="page-break-after: always;"></div> <div STYLE="page-break-after: always;"></div>

View File

@@ -26,7 +26,6 @@ import (
- [RandInt](#RandInt) - [RandInt](#RandInt)
- [RandString](#RandString) - [RandString](#RandString)
- [RandUpper](#RandUpper) - [RandUpper](#RandUpper)
- [RandLower](#RandLower) - [RandLower](#RandLower)
- [RandNumeral](#RandNumeral) - [RandNumeral](#RandNumeral)
- [RandNumeralOrLetter](#RandNumeralOrLetter) - [RandNumeralOrLetter](#RandNumeralOrLetter)

View File

@@ -26,7 +26,6 @@ import (
- [RandInt](#RandInt) - [RandInt](#RandInt)
- [RandString](#RandString) - [RandString](#RandString)
- [RandUpper](#RandUpper) - [RandUpper](#RandUpper)
- [RandLower](#RandLower) - [RandLower](#RandLower)
- [RandNumeral](#RandNumeral) - [RandNumeral](#RandNumeral)
- [RandNumeralOrLetter](#RandNumeralOrLetter) - [RandNumeralOrLetter](#RandNumeralOrLetter)

View File

@@ -172,8 +172,8 @@ import (
func main() { func main() {
arr := []string{"a", "b", "c", "d", "e"} arr := []string{"a", "b", "c", "d", "e"}
res := slice.Chunk(InterfaceSlice(arr), 3) res := slice.Chunk((arr), 3)
fmt.Println(res) //[][]any{{"a", "b", "c"}, {"d", "e"}} fmt.Println(res) //[][]string{{"a", "b", "c"}, {"d", "e"}}
} }
``` ```

View File

@@ -20,8 +20,10 @@ import (
<div STYLE="page-break-after: always;"></div> <div STYLE="page-break-after: always;"></div>
## 目录 ## 目录
- [AppendIfAbsent](#AppendIfAbsent) - [AppendIfAbsent](#AppendIfAbsent)
- [Contain](#Contain) - [Contain](#Contain)
- [ContainSubSlice](#ContainSubSlice) - [ContainSubSlice](#ContainSubSlice)
@@ -46,7 +48,6 @@ import (
- [GroupBy](#GroupBy) - [GroupBy](#GroupBy)
- [GroupWith](#GroupWith) - [GroupWith](#GroupWith)
- [IntSlice](#IntSlice) - [IntSlice](#IntSlice)
- [InterfaceSlice](#InterfaceSlice) - [InterfaceSlice](#InterfaceSlice)
- [Intersection](#Intersection) - [Intersection](#Intersection)
- [InsertAt](#InsertAt) - [InsertAt](#InsertAt)
@@ -72,6 +73,7 @@ import (
- [Without](#Without) - [Without](#Without)
- [KeyBy](#KeyBy) - [KeyBy](#KeyBy)
<div STYLE="page-break-after: always;"></div> <div STYLE="page-break-after: always;"></div>
## 文档 ## 文档
@@ -172,8 +174,8 @@ import (
func main() { func main() {
arr := []string{"a", "b", "c", "d", "e"} arr := []string{"a", "b", "c", "d", "e"}
res := slice.Chunk(InterfaceSlice(arr), 3) res := slice.Chunk(arr, 3)
fmt.Println(res) //[][]any{{"a", "b", "c"}, {"d", "e"}} fmt.Println(res) //[][]string{{"a", "b", "c"}, {"d", "e"}}
} }
``` ```

View File

@@ -36,7 +36,6 @@ import (
- [SnakeCase](#SnakeCase) - [SnakeCase](#SnakeCase)
- [SplitEx](#SplitEx) - [SplitEx](#SplitEx)
- [Wrap](#Wrap) - [Wrap](#Wrap)
- [Unwrap](#Unwrap) - [Unwrap](#Unwrap)

View File

@@ -36,7 +36,6 @@ import (
- [SnakeCase](#SnakeCase) - [SnakeCase](#SnakeCase)
- [SplitEx](#SplitEx) - [SplitEx](#SplitEx)
- [Wrap](#Wrap) - [Wrap](#Wrap)
- [Unwrap](#Unwrap) - [Unwrap](#Unwrap)

View File

@@ -34,7 +34,6 @@ import (
- [IsCreditCard](#IsCreditCard) - [IsCreditCard](#IsCreditCard)
- [IsDns](#IsDns) - [IsDns](#IsDns)
- [IsEmail](#IsEmail) - [IsEmail](#IsEmail)
- [IsEmptyString](#IsEmptyString) - [IsEmptyString](#IsEmptyString)
- [IsFloatStr](#IsFloatStr) - [IsFloatStr](#IsFloatStr)
- [IsNumberStr](#IsNumberStr) - [IsNumberStr](#IsNumberStr)

View File

@@ -34,7 +34,6 @@ import (
- [IsCreditCard](#IsCreditCard) - [IsCreditCard](#IsCreditCard)
- [IsDns](#IsDns) - [IsDns](#IsDns)
- [IsEmail](#IsEmail) - [IsEmail](#IsEmail)
- [IsEmptyString](#IsEmptyString) - [IsEmptyString](#IsEmptyString)
- [IsFloatStr](#IsFloatStr) - [IsFloatStr](#IsFloatStr)
- [IsNumberStr](#IsNumberStr) - [IsNumberStr](#IsNumberStr)