1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-07 06:02:27 +08:00

feat: add FindAllOccurrences

This commit is contained in:
dudaodong
2025-01-10 14:03:45 +08:00
parent a0d97cf38e
commit 7653afa919
5 changed files with 119 additions and 7 deletions

View File

@@ -763,5 +763,13 @@ func ExampleExtractContent() {
// Output:
// [content1 content2 content1]
}
func ExampleFindAllOccurrences() {
result := FindAllOccurrences("ababab", "ab")
fmt.Println(result)
// Output:
// [0 2 4]
}