- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 78 for str2 (0.04 sec)
-
src/slices/sort_test.go
{[]string{}, "", 0, false}, {str1, "foo", 0, true}, {str1, "bar", 0, false}, {str1, "zx", 1, false}, {str2, "aa", 0, false}, {str2, "ab", 0, true}, {str2, "ad", 1, false}, {str2, "ca", 1, true}, {str2, "ra", 2, false}, {str3, "bb", 0, false}, {str3, "mo", 0, true}, {str3, "nb", 1, false}, {str3, "qo", 1, true}, {str3, "tr", 2, false}, {str3, "vo", 2, true},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 09 19:20:55 UTC 2024 - 9.5K bytes - Viewed (0) -
src/sort/search_test.go
{[]string{}, "", 0, false}, {str1, "foo", 0, true}, {str1, "bar", 0, false}, {str1, "zx", 1, false}, {str2, "aa", 0, false}, {str2, "ab", 0, true}, {str2, "ad", 1, false}, {str2, "ca", 1, true}, {str2, "ra", 2, false}, {str3, "bb", 0, false}, {str3, "mo", 0, true}, {str3, "nb", 1, false}, {str3, "qo", 1, true}, {str3, "tr", 2, false}, {str3, "vo", 2, true},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 07 14:42:13 UTC 2022 - 6.8K bytes - Viewed (0) -
src/cmd/compile/internal/reflectdata/alg_test.go
a string b int } const size = 1024 var ( str1 = "foobar" str2 = "foobarz" a [size]T2 c [size]T2 ) for i := 0; i < size; i++ { a[i].a = str1 c[i].a = str1 } c[len(c)-1].a = str2 b.ResetTimer() for j := 0; j < b.N; j++ { _ = a == c } } const size = 16 type T1 struct { a [size]byte }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 24 21:55:14 UTC 2023 - 2.1K bytes - Viewed (0) -
src/encoding/gob/codec_test.go
type String string type PtrInterfaceItem struct { Str1 any // basic Str2 any // derived } // We'll send pointers; should receive values. // Also check that we can register T but send *T. func TestInterfacePointer(t *testing.T) { b := new(bytes.Buffer) str1 := "howdy" str2 := String("kiddo") item1 := &PtrInterfaceItem{ &str1, &str2, } // Register the type. Register(str2)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Aug 19 23:03:14 UTC 2023 - 36.9K bytes - Viewed (0) -
test/escape2.go
} func (b *Buffer) baz() { // ERROR "b does not escape$" b.str1 = b.str1[1:2] // ERROR "\(\*Buffer\).baz ignoring self-assignment in b.str1 = b.str1\[1:2\]$" b.str1 = b.str2[1:2] // ERROR "\(\*Buffer\).baz ignoring self-assignment in b.str1 = b.str2\[1:2\]$" } func (b *Buffer) bat() { // ERROR "leaking param content: b$"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 14 17:22:18 UTC 2023 - 35.1K bytes - Viewed (0) -
test/escape2n.go
} func (b *Buffer) baz() { // ERROR "b does not escape$" b.str1 = b.str1[1:2] // ERROR "\(\*Buffer\).baz ignoring self-assignment in b.str1 = b.str1\[1:2\]$" b.str1 = b.str2[1:2] // ERROR "\(\*Buffer\).baz ignoring self-assignment in b.str1 = b.str2\[1:2\]$" } func (b *Buffer) bat() { // ERROR "leaking param content: b$"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 14 17:22:18 UTC 2023 - 35.1K bytes - Viewed (0) -
src/expvar/expvar_test.go
m.Set("map1", &m1) m1.Add("a", 1) m1.Add("z", 2) m.Set("map2", &m2) for i := 0; i < 9; i++ { m2.Add(strconv.Itoa(i), int64(i)) } var s1, s2 String m.Set("str1", &s1) s1.Set("hello, world!") m.Set("str2", &s2) s2.Set("fizz buzz") b.ResetTimer() b.ReportAllocs() for i := 0; i < b.N; i++ { _ = m.String() } } func BenchmarkRealworldExpvarUsage(b *testing.B) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:46:19 UTC 2024 - 13.4K bytes - Viewed (0) -
test/fixedbugs/issue51291.dir/b.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package b import "./a" type TypeB string
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 18 00:45:20 UTC 2022 - 237 bytes - Viewed (0) -
src/cmd/compile/internal/ssa/_gen/S390X.rules
(MOVHZload [off] {sym} ptr1 (MOVHstore [off] {sym} ptr2 x _)) && isSamePtr(ptr1, ptr2) => (MOVHZreg x) (MOVBZload [off] {sym} ptr1 (MOVBstore [off] {sym} ptr2 x _)) && isSamePtr(ptr1, ptr2) => (MOVBZreg x) (MOVDload [off] {sym} ptr1 (FMOVDstore [off] {sym} ptr2 x _)) && isSamePtr(ptr1, ptr2) => (LGDR x) (FMOVDload [off] {sym} ptr1 (MOVDstore [off] {sym} ptr2 x _)) && isSamePtr(ptr1, ptr2) => (LDGR x)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 12 18:09:26 UTC 2023 - 74.3K bytes - Viewed (0) -
src/cmd/go/internal/str/str.go
// Copyright 2017 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package str provides string manipulation utilities. package str import ( "fmt" "strings" "unicode" "unicode/utf8" ) // StringList flattens its arguments into a single []string. // Each argument in args must have type string or []string.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 23 20:08:07 UTC 2024 - 2.3K bytes - Viewed (0)