- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for stringArray (0.2 sec)
-
src/runtime/map_benchmark_test.go
_ = m[stringstruct{string(bytes)}] } }) b.Run("array", func(b *testing.B) { b.ReportAllocs() type stringarray [1]string m := make(map[stringarray]int) m[stringarray{string(bytes)}] = 0 for i := 0; i < b.N; i++ { _ = m[stringarray{string(bytes)}] } }) }) } } var BoolSink bool func BenchmarkMapInterfaceString(b *testing.B) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 09 16:41:16 UTC 2023 - 10.6K bytes - Viewed (0) -
tests/postgres_test.go
CreatedAt time.Time `gorm:"type:TIMESTAMP WITHOUT TIME ZONE"` UpdatedAt time.Time `gorm:"type:TIMESTAMP WITHOUT TIME ZONE;default:current_timestamp"` Things pq.StringArray `gorm:"type:text[]"` } if err := DB.Exec("CREATE EXTENSION IF NOT EXISTS pgcrypto;").Error; err != nil { t.Errorf("Failed to create extension pgcrypto, got error %v", err) }
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Sat Oct 08 09:16:32 UTC 2022 - 6.4K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/model/schemas_test.go
InputSchema: arraySchema("integer", "", nil), // expected JSON is [0,0,...] so our length should be (maxRequestSizeBytes - 2) / 2 ExpectedMaxElements: 1572863, }, { Name: "stringArray", InputSchema: arraySchema("string", "", nil), // expected JSON is ["","",...] so our length should be (maxRequestSizeBytes - 2) / 3 ExpectedMaxElements: 1048575, }, { Name: "stringMap",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 20:13:14 UTC 2024 - 14K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/openapi/schemas_test.go
InputSchema: arraySchema("integer", "", nil), // expected JSON is [0,0,...] so our length should be (maxRequestSizeBytes - 2) / 2 ExpectedMaxElements: 1572863, }, { Name: "stringArray", InputSchema: arraySchema("string", "", nil), // expected JSON is ["","",...] so our length should be (maxRequestSizeBytes - 2) / 3 ExpectedMaxElements: 1048575, }, { Name: "stringMap",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Dec 14 17:18:27 UTC 2022 - 13K bytes - Viewed (0) -
src/cmd/vet/testdata/print/print.go
fmt.Printf("%s", &stringSlice) // not an error intSlice := []int{3, 4} fmt.Printf("%s", &intSlice) // ERROR "Printf format %s has arg &intSlice of wrong type \*\[\]int" stringArray := [2]string{"a", "b"} fmt.Printf("%s", &stringArray) // not an error intArray := [2]int{3, 4} fmt.Printf("%s", &intArray) // ERROR "Printf format %s has arg &intArray of wrong type \*\[2\]int" stringStruct := struct{ F string }{"foo"}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 09 01:28:01 UTC 2023 - 27.5K bytes - Viewed (0) -
src/net/lookup_windows.go
txts := make([]string, 0, 10) for _, p := range validRecs(rec, syscall.DNS_TYPE_TEXT, name) { d := (*syscall.DNSTXTData)(unsafe.Pointer(&p.Data[0])) s := "" for _, v := range (*[1 << 10]*uint16)(unsafe.Pointer(&(d.StringArray[0])))[:d.StringCount:d.StringCount] { s += windows.UTF16PtrToString(v) } txts = append(txts, s) } return txts, nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:23:45 UTC 2024 - 14.2K bytes - Viewed (0) -
src/syscall/types_windows.go
type DNSPTRData struct { Host *uint16 } type DNSMXData struct { NameExchange *uint16 Preference uint16 Pad uint16 } type DNSTXTData struct { StringCount uint16 StringArray [1]*uint16 } type DNSRecord struct { Next *DNSRecord Name *uint16 Type uint16 Length uint16 Dw uint32 Ttl uint32 Reserved uint32 Data [40]byte }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 20 06:04:31 UTC 2024 - 27.8K bytes - Viewed (0) -
cluster/gce/util.sh
fi echo "$node_labels" } # yaml-map-string-stringarray converts the encoded structure to yaml format, and echoes the result # under the provided name. If the encoded structure is empty, echoes nothing. # 1: name to be output in yaml # 2: encoded map-string-string (which may contain duplicate keys - resulting in map-string-stringarray) # 3: key-value separator (defaults to ':') # 4: item separator (defaults to ',')
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 21:47:17 UTC 2024 - 161.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/windows/types_windows.go
Host *uint16 } type DNSMXData struct { NameExchange *uint16 Preference uint16 Pad uint16 } type DNSTXTData struct { StringCount uint16 StringArray [1]*uint16 } type DNSRecord struct { Next *DNSRecord Name *uint16 Type uint16 Length uint16 Dw uint32 Ttl uint32 Reserved uint32
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 05 22:18:42 UTC 2024 - 104.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"DNSSRVData.Port", Field, 0}, {"DNSSRVData.Priority", Field, 0}, {"DNSSRVData.Target", Field, 0}, {"DNSSRVData.Weight", Field, 0}, {"DNSTXTData", Type, 0}, {"DNSTXTData.StringArray", Field, 0}, {"DNSTXTData.StringCount", Field, 0}, {"DNS_INFO_NO_RECORDS", Const, 4}, {"DNS_TYPE_A", Const, 0}, {"DNS_TYPE_A6", Const, 0}, {"DNS_TYPE_AAAA", Const, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)