- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for ExampleCutSuffix (0.09 sec)
-
src/bytes/example_test.go
} show("Gopher", "Go") show("Gopher", "ph") // Output: // CutPrefix("Gopher", "Go") = "pher", true // CutPrefix("Gopher", "ph") = "Gopher", false } func ExampleCutSuffix() { show := func(s, sep string) { before, found := bytes.CutSuffix([]byte(s), []byte(sep)) fmt.Printf("CutSuffix(%q, %q) = %q, %v\n", s, sep, before, found) } show("Gopher", "Go") show("Gopher", "er")
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Aug 07 17:22:36 UTC 2024 - 14.9K bytes - Viewed (0)