feat: add FindAllOccurrences

This commit is contained in:
dudaodong committed 2025-01-10 14:03:45 +08:00
1 parent a0d97cf38e
commit 7653afa919
5 files changed
+118 -6

No files matched your search

+8
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]
}