Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 4,586 for struct (0.1 sec)

  1. src/cmd/compile/internal/syntax/nodes.go

    	// []Elem
    	SliceType struct {
    		Elem Expr
    		expr
    	}
    
    	// ...Elem
    	DotsType struct {
    		Elem Expr
    		expr
    	}
    
    	// struct { FieldList[0] TagList[0]; FieldList[1] TagList[1]; ... }
    	StructType struct {
    		FieldList []*Field
    		TagList   []*BasicLit // i >= len(TagList) || TagList[i] == nil means no tag for field i
    		expr
    	}
    
    	// Name Type
    	//      Type
    	Field struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 14:52:38 UTC 2023
    - 9K bytes
    - Viewed (0)
  2. src/go/ast/print_test.go

    		`0  []int (len = 3) {
    		1  .  0: 1
    		2  .  1: 2
    		3  .  2: 3
    		4  }`},
    
    	// structs
    	{struct{}{}, `0  struct {} {}`},
    	{struct{ x int }{007}, `0  struct { x int } {}`},
    	{struct{ X, y int }{42, 991},
    		`0  struct { X int; y int } {
    		1  .  X: 42
    		2  }`},
    	{struct{ X, Y int }{42, 991},
    		`0  struct { X int; Y int } {
    		1  .  X: 42
    		2  .  Y: 991
    		3  }`},
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 09 15:35:30 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/syntax/testdata/tparams.go

    // go.dev/issue/49482
    type (
    	t[a *[]int] struct{}
    	t[a *t,] struct{}
    	t[a *t|[]int] struct{}
    	t[a *t|t,] struct{}
    	t[a *t|~t,] struct{}
    	t[a *struct{}|t] struct{}
    	t[a *t|struct{}] struct{}
    	t[a *struct{}|~t] struct{}
    )
    
    // go.dev/issue/51488
    type (
    	t[a *t|t,] struct{}
    	t[a *t|t, b t] struct{}
    	t[a *t|t] struct{}
    	t[a *[]t|t] struct{}
    	t[a ([]t)] struct{}
    	t[a ([]t)|t] struct{}
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 01 17:49:03 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  4. 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)
  5. src/cmd/vendor/golang.org/x/sys/unix/ztypes_aix_ppc64.go

    type Mode_t uint32
    
    type Timespec struct {
    	Sec  int64
    	Nsec int64
    }
    
    type Timeval struct {
    	Sec  int64
    	Usec int32
    	_    [4]byte
    }
    
    type Timeval32 struct {
    	Sec  int32
    	Usec int32
    }
    
    type Timex struct{}
    
    type Time_t int64
    
    type Tms struct{}
    
    type Utimbuf struct {
    	Actime  int64
    	Modtime int64
    }
    
    type Timezone struct {
    	Minuteswest int32
    	Dsttime     int32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 5K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go

    	SizeofBpfZbufHeader = 0x20
    )
    
    type BpfVersion struct {
    	Major uint16
    	Minor uint16
    }
    
    type BpfStat struct {
    	Recv uint32
    	Drop uint32
    }
    
    type BpfZbuf struct {
    	Bufa   *byte
    	Bufb   *byte
    	Buflen uint64
    }
    
    type BpfProgram struct {
    	Len   uint32
    	Insns *BpfInsn
    }
    
    type BpfInsn struct {
    	Code uint16
    	Jt   uint8
    	Jf   uint8
    	K    uint32
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go

    	Route  [16]uint16
    }
    
    type RawSockaddr struct {
    	Len    uint8
    	Family uint8
    	Data   [14]int8
    }
    
    type RawSockaddrAny struct {
    	Addr RawSockaddr
    	Pad  [92]int8
    }
    
    type _Socklen uint32
    
    type Linger struct {
    	Onoff  int32
    	Linger int32
    }
    
    type Iovec struct {
    	Base *byte
    	Len  uint64
    }
    
    type IPMreq struct {
    	Multiaddr [4]byte /* in_addr */
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  8. src/syscall/ztypes_openbsd_ppc64.go

    	Len    uint8
    	Family uint8
    	Index  uint16
    	Type   uint8
    	Nlen   uint8
    	Alen   uint8
    	Slen   uint8
    	Data   [24]int8
    }
    
    type RawSockaddr struct {
    	Len    uint8
    	Family uint8
    	Data   [14]int8
    }
    
    type RawSockaddrAny struct {
    	Addr RawSockaddr
    	Pad  [92]int8
    }
    
    type _Socklen uint32
    
    type Linger struct {
    	Onoff  int32
    	Linger int32
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 03:24:15 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  9. src/syscall/ztypes_freebsd_amd64.go

    }
    
    type Iovec struct {
    	Base *byte
    	Len  uint64
    }
    
    type IPMreq struct {
    	Multiaddr [4]byte /* in_addr */
    	Interface [4]byte /* in_addr */
    }
    
    type IPMreqn struct {
    	Multiaddr [4]byte /* in_addr */
    	Address   [4]byte /* in_addr */
    	Ifindex   int32
    }
    
    type IPv6Mreq struct {
    	Multiaddr [16]byte /* in6_addr */
    	Interface uint32
    }
    
    type Msghdr struct {
    	Name       *byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 16 01:17:28 UTC 2022
    - 8K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go

    	_C_long_long int64
    )
    
    type Timespec struct {
    	Sec  int64
    	Nsec int64
    }
    
    type Timeval struct {
    	Sec  int64
    	Usec int64
    }
    
    type Timeval32 struct {
    	Sec  int32
    	Usec int32
    }
    
    type Tms struct {
    	Utime  int64
    	Stime  int64
    	Cutime int64
    	Cstime int64
    }
    
    type Utimbuf struct {
    	Actime  int64
    	Modtime int64
    }
    
    type Rusage struct {
    	Utime    Timeval
    	Stime    Timeval
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 7.5K bytes
    - Viewed (0)
Back to top