Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,312 for Tstruct (0.16 sec)

  1. src/internal/cpu/cpu.go

    // The struct is padded to avoid false sharing.
    var ARM struct {
    	_            CacheLinePad
    	HasVFPv4     bool
    	HasIDIVA     bool
    	HasV7Atomics bool
    	_            CacheLinePad
    }
    
    // The booleans in ARM64 contain the correspondingly named cpu feature bit.
    // The struct is padded to avoid false sharing.
    var ARM64 struct {
    	_          CacheLinePad
    	HasAES     bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  2. test/alias2.go

    // Test basic restrictions on type aliases.
    
    package p
    
    import (
    	"reflect"
    	. "reflect"
    )
    
    type T0 struct{}
    
    // Valid type alias declarations.
    
    type _ = T0
    type _ = int
    type _ = struct{}
    type _ = reflect.Value
    type _ = Value
    
    type (
    	A0 = T0
    	A1 = int
    	A2 = struct{}
    	A3 = reflect.Value
    	A4 = Value
    	A5 = Value
    
    	N0 A0
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:09:14 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  3. src/encoding/gob/encoder_test.go

    type Struct0 struct {
    	I any
    }
    
    type NewType0 struct {
    	S string
    }
    
    type ignoreTest struct {
    	in, out any
    }
    
    var ignoreTests = []ignoreTest{
    	// Decode normal struct into an empty struct
    	{&struct{ A int }{23}, &struct{}{}},
    	// Decode normal struct into a nil.
    	{&struct{ A int }{23}, nil},
    	// Decode singleton string into a nil.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  4. src/internal/types/testdata/check/decls2/decls2a.go

    import "time"
    import "unsafe"
    
    // T1 declared before its methods.
    type T1 struct{
    	f int
    }
    
    func (T1) m() {}
    func (T1) m /* ERROR "already declared" */ () {}
    func (x *T1) f /* ERROR "field and method with the same name f" */ () {}
    
    // Conflict between embedded field and method name,
    // with the embedded field being a basic type.
    type T1b struct {
    	int
    }
    
    func (T1b) int /* ERROR "field and method" */ () {}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  5. tests/scan_test.go

    		t.Errorf("No error should happen, got %v", err)
    	}
    
    	type NestedEmbeddedStruct struct {
    		NestedEmbeddedIntField            int
    		NestedEmbeddedIntFieldWithDefault int `gorm:"default:2"`
    	}
    
    	type EmbeddedStruct struct {
    		EmbeddedIntField     int
    		NestedEmbeddedStruct `gorm:"embedded"`
    	}
    
    	type EmbeddedPtrStruct struct {
    		EmbeddedPtrIntField   int
    		*NestedEmbeddedStruct `gorm:"embedded"`
    	}
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:57:36 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/decode_test.go

    			name: "reject duplicate byte string and text string keys into struct",
    			in:   hex("a2414101614102"), // {'A': 1, "A": 2}
    			into: struct {
    				A int `json:"A"`
    			}{},
    			assertOnError: assertIdenticalError(&cbor.DupMapKeyError{Key: string("A"), Index: 1}),
    		},
    		{
    			name: "reject two identical indefinite-length byte string keys split into chunks differently into struct",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 18:43:10 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  7. src/structs/doc.go

    // license that can be found in the LICENSE file.
    
    // Package structs defines marker types that can be used as struct fields
    // to modify the properties of a struct.
    //
    // By convention, a marker type should be used as the type of a field
    // named "_", placed at the beginning of a struct type definition.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 21:19:39 UTC 2024
    - 431 bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time_test.go

    	"sigs.k8s.io/yaml"
    
    	"github.com/google/go-cmp/cmp"
    	fuzz "github.com/google/gofuzz"
    )
    
    type MicroTimeHolder struct {
    	T MicroTime `json:"t"`
    }
    
    func TestMicroTimeMarshalYAML(t *testing.T) {
    	cases := []struct {
    		input  MicroTime
    		result string
    	}{
    		{MicroTime{}, "t: null\n"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  9. src/runtime/pprof/protomem_test.go

    	const expectedLocation = "runtime/pprof.nonRecursiveGenericAllocFunction[go.shape.struct {},go.shape.struct { runtime/pprof.buf [128]uint8 }];runtime/pprof.nonRecursiveGenericAllocFunction[go.shape.struct...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 14:38:45 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  10. src/internal/profilerecord/profilerecord.go

    // records with deep stack traces.
    //
    // TODO: Consider moving this to internal/runtime, see golang.org/issue/65355.
    package profilerecord
    
    type StackRecord struct {
    	Stack []uintptr
    }
    
    type MemProfileRecord struct {
    	AllocBytes, FreeBytes     int64
    	AllocObjects, FreeObjects int64
    	Stack                     []uintptr
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 14:38:45 UTC 2024
    - 815 bytes
    - Viewed (0)
Back to top