Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,100 for StructI (0.29 sec)

  1. src/reflect/abi_test.go

    // Struct6 has a nested struct.
    type Struct6 struct {
    	Struct1
    }
    
    // Struct7 is a struct with a nested array-typed field
    // that cannot be passed in registers as a result.
    type Struct7 struct {
    	Struct1
    	Struct2
    }
    
    // Struct8 is large aggregate struct type that may be
    // passed in registers.
    type Struct8 struct {
    	Struct5
    	Struct1
    }
    
    // Struct9 is a type that has an array type nested
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 26.4K bytes
    - Viewed (0)
  2. 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)
  3. src/encoding/gob/doc.go

    schematically,
    
    	struct { A, B int }
    
    can be sent from or received into any of these Go types:
    
    	struct { A, B int }	// the same
    	*struct { A, B int }	// extra indirection of the struct
    	struct { *A, **B int }	// extra indirection of the fields
    	struct { A, B int64 }	// different concrete value type; see below
    
    It may also be received into any of these:
    
    	struct { A, B int }	// the same
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  4. src/encoding/gob/type.go

    	tReserved7 = bootstrapType("_reserved1", (*struct{ r7 int })(nil))
    	tReserved6 = bootstrapType("_reserved1", (*struct{ r6 int })(nil))
    	tReserved5 = bootstrapType("_reserved1", (*struct{ r5 int })(nil))
    	tReserved4 = bootstrapType("_reserved1", (*struct{ r4 int })(nil))
    	tReserved3 = bootstrapType("_reserved1", (*struct{ r3 int })(nil))
    	tReserved2 = bootstrapType("_reserved1", (*struct{ r2 int })(nil))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 02:00:26 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  5. src/encoding/gob/decode.go

    	// Also we know we're decoding a struct now, so the client must have sent one.
    	if t := builtinIdToType(remoteId); t != nil {
    		wireStruct, _ = t.(*structType)
    	} else {
    		wire := dec.wireType[remoteId]
    		if wire == nil {
    			error_(errBadType)
    		}
    		wireStruct = wire.StructT
    	}
    	if wireStruct == nil {
    		errorf("type mismatch in decoder: want struct type %s; got non-struct", rt)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 19:10:23 UTC 2023
    - 40.1K bytes
    - Viewed (0)
  6. tests/scanner_valuer_test.go

    		Strings:  StringsSlice{"a", "b", "c"},
    		Structs: StructsSlice{
    			{"name1", "value1"},
    			{"name2", "value2"},
    		},
    		Role:             Role{Name: "admin"},
    		ExampleStruct:    ExampleStruct{"name", "value1"},
    		ExampleStructPtr: &ExampleStruct{"name", "value2"},
    	}
    
    	if err := DB.Create(&data).Error; err != nil {
    		t.Fatalf("No error should happened when create scanner valuer struct, but got %v", err)
    	}
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 07 07:02:07 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  7. src/encoding/gob/debug.go

    		deb.printCommonType(indent, "slice", &wire.SliceT.CommonType)
    		fmt.Fprintf(os.Stderr, "%selem id=%d\n", indent+1, wire.SliceT.Elem)
    	case wire.StructT != nil:
    		deb.printCommonType(indent, "struct", &wire.StructT.CommonType)
    		for i, field := range wire.StructT.Field {
    			fmt.Fprintf(os.Stderr, "%sfield %d:\t%s\tid=%d\n", indent+1, i, field.Name, field.Id)
    		}
    	case wire.GobEncoderT != nil:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 20 09:34:41 UTC 2023
    - 18.3K bytes
    - Viewed (0)
  8. pkg/slices/slices_test.go

    			}
    		})
    	}
    }
    
    // nolint: unused
    type myStruct struct {
    	a, b, c, d string
    	n          int
    }
    
    func makeRandomStructs(n int) []*myStruct {
    	rand.Seed(42) // nolint: staticcheck
    	structs := make([]*myStruct, n)
    	for i := 0; i < n; i++ {
    		structs[i] = &myStruct{n: rand.Intn(n)} // nolint: gosec
    	}
    	return structs
    }
    
    const N = 100_000
    
    func BenchmarkSort(b *testing.B) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  9. src/go/printer/testdata/declarations.input

    	var _ func() int
    
    	type _ struct{}
    	type _ *struct{}
    	type _ []struct{}
    	type _ map[string]struct{}
    	type _ chan struct{}
    	type _ func() struct{}
    
    	type _ interface{}
    	type _ *interface{}
    	type _ []interface{}
    	type _ map[string]interface{}
    	type _ chan interface{}
    	type _ func() interface{}
    
    	var _ struct{}
    	var _ *struct{}
    	var _ []struct{}
    	var _ map[string]struct{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 13 22:24:31 UTC 2021
    - 16.5K bytes
    - Viewed (0)
  10. src/go/printer/testdata/declarations.golden

    	var _ func() int
    
    	type _ struct{}
    	type _ *struct{}
    	type _ []struct{}
    	type _ map[string]struct{}
    	type _ chan struct{}
    	type _ func() struct{}
    
    	type _ interface{}
    	type _ *interface{}
    	type _ []interface{}
    	type _ map[string]interface{}
    	type _ chan interface{}
    	type _ func() interface{}
    
    	var _ struct{}
    	var _ *struct{}
    	var _ []struct{}
    	var _ map[string]struct{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 13 22:24:31 UTC 2021
    - 16.2K bytes
    - Viewed (0)
Back to top