- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 85 for str1 (0.26 sec)
-
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) -
src/database/sql/sql_test.go
t.Fatal("exec insert", err) } var ( str1 string dec1 decimalInt arr1 []int64 ) err = db.QueryRowContext(ctx, "SELECT|keys|dec1,str1,array1|").Scan(&dec1, &str1, &arr1) if err != nil { t.Fatal("select", err) } list := []struct{ got, want any }{ {o1, "from-server"}, {dec1, decimalInt{123}}, {str1, "hello"}, {arr1, []int64{42, 128, 707}}, }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 111.6K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go
obj: map[string]interface{}{ "str": "this is a 123 string 456", }, schema: objectTypePtr(map[string]schema.Structural{ "str": stringType, }), valid: []string{ "self.str.find('[0-9]+') == '123'", "self.str.find('[0-9]+') != '456'", "self.str.find('xyz') == ''", "self.str.findAll('[0-9]+') == ['123', '456']", "self.str.findAll('[0-9]+', 0) == []",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 17:14:10 UTC 2024 - 159.9K 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) -
cmd/utils.go
func lcpSuffix(strs []string) string { return lcp(strs, false) } func lcp(strs []string, pre bool) string { // short-circuit empty list if len(strs) == 0 { return "" } xfix := strs[0] // short-circuit single-element list if len(strs) == 1 { return xfix } // compare first to rest for _, str := range strs[1:] { xfixl := len(xfix) strl := len(str)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed Jun 05 22:00:34 UTC 2024 - 31.9K 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) -
src/cmd/compile/internal/ssa/nilcheck_test.go
Valu("sb", OpSB, c.config.Types.Uintptr, 0, nil), Goto("checkPtr")), Bloc("checkPtr", Valu("ptr1", OpLoad, ptrType, 0, nil, "sb", "mem"), Valu("bool1", OpIsNonNil, c.config.Types.Bool, 0, nil, "ptr1"), If("bool1", "secondCheck", "exit")), Bloc("secondCheck", Valu("bool2", OpIsNonNil, c.config.Types.Bool, 0, nil, "ptr1"), If("bool2", "extra", "exit")), Bloc("extra", Goto("exit")), Bloc("exit",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 17 23:34:11 UTC 2023 - 12.3K bytes - Viewed (0) -
src/internal/coverage/stringtab/stringtab.go
for idx := 0; idx < numEntries; idx++ { slen := str.r.ReadULEB128() str.strs = append(str.strs, str.r.ReadString(int64(slen))) } } // Entries returns the number of decoded entries in a string table. func (str *Reader) Entries() int { return len(str.strs) } // Get returns string 'idx' within the string table. func (str *Reader) Get(idx uint32) string { return str.strs[idx]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 11 12:40:42 UTC 2022 - 3.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/arch/arm/armasm/tables.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 16 17:57:48 UTC 2017 - 267.4K bytes - Viewed (0) -
src/vendor/golang.org/x/crypto/chacha20poly1305/chacha20poly1305_amd64.s
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 29 21:28:33 UTC 2023 - 105.6K bytes - Viewed (0)