- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 8,088 for StructI (0.1 sec)
-
test/abi/struct_lower_1.go
package main import "fmt" //go:registerparams //go:noinline func passStruct6(a Struct6) Struct6 { return a } type Struct6 struct { Struct1 } type Struct1 struct { A, B, C uint } func main() { fmt.Println(passStruct6(Struct6{Struct1{1, 2, 3}}))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 441 bytes - Viewed (0) -
src/sort/sort_slices_benchmark_test.go
func (s myStructs) Swap(i, j int) { s[i], s[j] = s[j], s[i] } func makeRandomStructs(n int) myStructs { r := rand.New(rand.NewPCG(42, 0)) structs := make([]*myStruct, n) for i := 0; i < n; i++ { structs[i] = &myStruct{n: r.IntN(n)} } return structs } func TestStructSorts(t *testing.T) { ss := makeRandomStructs(200) ss2 := make([]*myStruct, len(ss)) for i := range ss {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 08 22:59:40 UTC 2024 - 4K bytes - Viewed (0) -
doc/next/6-stdlib/99-minor/structs/66408.md
<!-- This is a new package; covered in 6-stdlib/3-structs.md. -->...
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 21:19:39 UTC 2024 - 66 bytes - Viewed (0) -
test/fixedbugs/issue7366.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 363 bytes - Viewed (0) -
test/fixedbugs/issue19482.go
) func bad() { var z = T{_: "verse"} // ERROR "invalid field name _ in struct initializer|expected struct field name|unknown field _ in struct literal of type T" _ = z _ = T{_: "itinerary"} // ERROR "invalid field name _ in struct initializer|expected struct field name|unknown field _ in struct literal of type T"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 27 21:59:09 UTC 2022 - 1.1K bytes - Viewed (0) -
test/ken/ptrvar.go
// license that can be found in the LICENSE file. // Test pointers and the . (selector) operator on structs. package main type x2 struct { a,b,c int; d int; }; var g1 x2; var g2 struct { a,b,c int; d x2; }; func main() { var x int; var s1 *x2; var s2 *struct { a,b,c int; d x2; }; s1 = &g1; s2 = &g2; s1.a = 1; s1.b = 2; s1.c = 3; s1.d = 5; s2.a = 7;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 24 05:24:24 UTC 2012 - 772 bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/yaml/meta.go
// that are identified with an "apiVersion" and "kind" fields in their JSON // serialization. It may be parameterized with the names of the fields in memory, or an // optional list of base structs to search for those fields in memory. type SimpleMetaFactory struct{} // Interpret will return the APIVersion and Kind of the JSON wire-format // encoding of an object, or an error.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 27 09:44:59 UTC 2019 - 1.8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/third_party/forked/golang/json/fields.go
return len(x[i].index) < len(x[j].index) } // typeFields returns a list of fields that JSON should recognize for the given type. // The algorithm is breadth-first search over the set of structs to include - the top struct // and then any reachable anonymous structs. func typeFields(t reflect.Type) []field { // Anonymous fields to explore at the current level and the next. current := []field{} next := []field{{typ: t}}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jun 25 16:23:43 UTC 2022 - 13.1K bytes - Viewed (0) -
test/nilptr2.go
{"&a10p[i]", func() { println(&a10p[i]) }}, {"*structp", func() { use(*structp) }}, {"&*structp", func() { println(&*structp) }}, {"structp.i", func() { println(structp.i) }}, {"&structp.i", func() { println(&structp.i) }}, {"structp.j", func() { println(structp.j) }}, {"&structp.j", func() { println(&structp.j) }}, {"structp.k", func() { println(structp.k) }}, {"&structp.k", func() { println(&structp.k) }},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 11 03:02:33 UTC 2019 - 3.6K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/json/meta.go
// optional list of base structs to search for those fields in memory. type SimpleMetaFactory struct { } // Interpret will return the APIVersion and Kind of the JSON wire-format // encoding of an object, or an error. func (SimpleMetaFactory) Interpret(data []byte) (*schema.GroupVersionKind, error) { findKind := struct { // +optional APIVersion string `json:"apiVersion,omitempty"`
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 11 14:09:48 UTC 2017 - 2.2K bytes - Viewed (0)