- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ExampleIndexRune (0.24 sec)
-
src/cmd/internal/test2json/testdata/framebig.json
{"Action":"pass","Test":"ExampleIndexByte"} {"Action":"run","Test":"ExampleIndexRune"} {"Action":"output","Test":"ExampleIndexRune","Output":"=== RUN ExampleIndexRune\n"} {"Action":"output","Test":"ExampleIndexRune","Output":"--- PASS: ExampleIndexRune (0.00s)\n"} {"Action":"pass","Test":"ExampleIndexRune"} {"Action":"run","Test":"ExampleLastIndex"}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 09 17:33:07 UTC 2022 - 12.2K bytes - Viewed (0) -
src/strings/example_test.go
fmt.Println(strings.IndexByte("golang", 'g')) fmt.Println(strings.IndexByte("gophers", 'h')) fmt.Println(strings.IndexByte("golang", 'x')) // Output: // 0 // 3 // -1 } func ExampleIndexRune() { fmt.Println(strings.IndexRune("chicken", 'k')) fmt.Println(strings.IndexRune("chicken", 'd')) // Output: // 4 // -1 } func ExampleLastIndex() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 09 22:05:38 UTC 2023 - 10.7K bytes - Viewed (0)