- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ExampleLastIndex (1.07 sec)
-
src/cmd/internal/test2json/testdata/framebig.json
{"Action":"pass","Test":"ExampleIndexRune"} {"Action":"run","Test":"ExampleLastIndex"} {"Action":"output","Test":"ExampleLastIndex","Output":"=== RUN ExampleLastIndex\n"} {"Action":"output","Test":"ExampleLastIndex","Output":"--- PASS: ExampleLastIndex (0.00s)\n"} {"Action":"pass","Test":"ExampleLastIndex"} {"Action":"run","Test":"ExampleLastIndexAny"}
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
// 0 // 3 // -1 } func ExampleIndexRune() { fmt.Println(strings.IndexRune("chicken", 'k')) fmt.Println(strings.IndexRune("chicken", 'd')) // Output: // 4 // -1 } func ExampleLastIndex() { fmt.Println(strings.Index("go gopher", "go")) fmt.Println(strings.LastIndex("go gopher", "go")) fmt.Println(strings.LastIndex("go gopher", "rodent")) // Output: // 0 // 3 // -1 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 09 22:05:38 UTC 2023 - 10.7K bytes - Viewed (0)