- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for ExampleClone (0.18 sec)
-
src/strings/example_test.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package strings_test import ( "fmt" "strings" "unicode" "unsafe" ) func ExampleClone() { s := "abc" clone := strings.Clone(s) fmt.Println(s == clone) fmt.Println(unsafe.StringData(s) == unsafe.StringData(clone)) // Output: // true // false } func ExampleBuilder() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 09 22:05:38 UTC 2023 - 10.7K bytes - Viewed (0)