1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-12 08:42: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

@@ -20,8 +20,10 @@ import (
<div STYLE="page-break-after: always;"></div>
## 目录
- [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)
<div STYLE="page-break-after: always;"></div>
## 文档
@@ -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"}}
}
```