- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 5,663 for StructI (0.18 sec)
-
src/reflect/all_test.go
{struct{ x int32 }{}, "int32"}, {struct{ x int64 }{}, "int64"}, {struct{ x uint }{}, "uint"}, {struct{ x uint8 }{}, "uint8"}, {struct{ x uint16 }{}, "uint16"}, {struct{ x uint32 }{}, "uint32"}, {struct{ x uint64 }{}, "uint64"}, {struct{ x float32 }{}, "float32"}, {struct{ x float64 }{}, "float64"}, {struct{ x int8 }{}, "int8"}, {struct{ x (**int8) }{}, "**int8"},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 218.8K bytes - Viewed (0) -
doc/next/6-stdlib/3-structs.md
### New structs package The new [structs] package provides types for struct fields that modify properties of the containing struct type such as memory layout. In this release, the only such type is [`HostLayout`](/pkg/structs#HostLayout) which indicates that a structure with a field of that type has a layout that conforms to host platform
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 16:06:02 UTC 2024 - 356 bytes - Viewed (0) -
src/cmd/compile/internal/types2/struct.go
) // ---------------------------------------------------------------------------- // API // A Struct represents a struct type. type Struct struct { fields []*Var // fields != nil indicates the struct is set up (possibly with len(fields) == 0) tags []string // field tags; nil if there are no tags } // NewStruct returns a new struct with the given fields and corresponding field tags.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 29 22:06:18 UTC 2024 - 6.6K bytes - Viewed (0) -
src/go/types/struct.go
) // ---------------------------------------------------------------------------- // API // A Struct represents a struct type. type Struct struct { fields []*Var // fields != nil indicates the struct is set up (possibly with len(fields) == 0) tags []string // field tags; nil if there are no tags } // NewStruct returns a new struct with the given fields and corresponding field tags.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 29 22:06:18 UTC 2024 - 6.1K bytes - Viewed (0) -
test/typeparam/struct.go
// license that can be found in the LICENSE file. package main import ( "fmt" ) type E[T any] struct { v T } type S1 struct { E[int] v string } type Eint = E[int] type Ebool = E[bool] type Eint2 = Eint type S2 struct { Eint Ebool v string } type S3 struct { *E[int] } func main() { s1 := S1{Eint{2}, "foo"} if got, want := s1.E.v, 2; got != want {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 05 16:29:58 UTC 2024 - 801 bytes - Viewed (0) -
test/codegen/structs.go
package codegen // This file contains code generation tests related to the handling of // struct types. // ------------- // // Zeroing // // ------------- // type Z1 struct { a, b, c int } func Zero1(t *Z1) { // Issue #18370 // amd64:`MOVUPS\tX[0-9]+, \(.*\)`,`MOVQ\t\$0, 16\(.*\)` *t = Z1{} } type Z2 struct { a, b, c *int } func Zero2(t *Z2) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 923 bytes - Viewed (0) -
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/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)