- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for ExampleIndexAny (0.07 seconds)
-
src/bytes/example_test.go
return unicode.Is(unicode.Han, c) } fmt.Println(bytes.IndexFunc([]byte("Hello, 世界"), f)) fmt.Println(bytes.IndexFunc([]byte("Hello, world"), f)) // Output: // 7 // -1 } func ExampleIndexAny() { fmt.Println(bytes.IndexAny([]byte("chicken"), "aeiouy")) fmt.Println(bytes.IndexAny([]byte("crwth"), "aeiouy")) // Output: // 2 // -1 } func ExampleIndexRune() {
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Mon May 12 16:07:54 GMT 2025 - 16.5K bytes - Click Count (0)