- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for ExampleIndexByte (0.08 sec)
-
src/bytes/example_test.go
// true } func ExampleIndex() { fmt.Println(bytes.Index([]byte("chicken"), []byte("ken"))) fmt.Println(bytes.Index([]byte("chicken"), []byte("dmr"))) // Output: // 4 // -1 } func ExampleIndexByte() { fmt.Println(bytes.IndexByte([]byte("chicken"), byte('k'))) fmt.Println(bytes.IndexByte([]byte("chicken"), byte('g'))) // Output: // 4 // -1 } func ExampleIndexFunc() {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Aug 07 17:22:36 UTC 2024 - 14.9K bytes - Viewed (0)