- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 8,088 for StructI (0.17 sec)
-
src/cmd/compile/internal/types2/sizes.go
// a struct of n consecutive fields of the array's element type. // - The size of a struct is the offset of the last field plus that // field's size. As with all element types, if the struct is used // in an array its size must first be aligned to a multiple of the // struct's alignment. // - All other types have size WordSize. // - Arrays and structs are aligned per spec definition; all other
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 8.8K bytes - Viewed (0) -
src/internal/types/testdata/check/conversions1.go
var u struct { x struct { x int "bar" } "bar" } s = s s = t // ERRORx `cannot use .* in assignment` s = u // ERRORx `cannot use .* in assignment` s = S(s) s = S(t) s = S(u) t = u // ERRORx `cannot use .* in assignment` t = T(u) } func _() { type E1 struct { x int "foo" } type E2 struct { x int "bar" } type S struct{ x E1 } type T struct { x E2 "foo"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:27 UTC 2023 - 5.1K bytes - Viewed (0) -
test/fixedbugs/issue14729.go
// license that can be found in the LICENSE file. // Issue 14729: structs cannot embed unsafe.Pointer per the spec. package main import "unsafe" type s struct { unsafe.Pointer } // ERROR "embedded type cannot be a pointer|embedded type may not be a pointer||embedded field type cannot be unsafe.Pointer"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 22 17:50:13 UTC 2020 - 469 bytes - Viewed (0) -
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) -
test/ken/embed.go
// license that can be found in the LICENSE file. // Test embedded fields of structs, including methods. package main type I interface { test1() int test2() int test3() int test4() int test5() int test6() int test7() int } /****** ****** ******/ type SubpSubp struct { a7 int a int } func (p *SubpSubp) test7() int { if p.a != p.a7 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 03 17:03:15 UTC 2016 - 4.3K bytes - Viewed (0) -
internal/mountinfo/mountinfo_linux.go
} return nil } // readProcMounts reads the given mountFilePath (normally /proc/mounts) and produces a hash // of the contents. If the out argument is not nil, this fills it with MountPoint structs. func readProcMounts(mountFilePath string) (mountInfos, error) { file, err := os.Open(mountFilePath) if err != nil { return nil, err } defer file.Close() return parseMountFrom(file) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sun Jan 02 17:15:06 UTC 2022 - 4.7K bytes - Viewed (0) -
test/convert2.go
t = u // ERROR "cannot use .* in assignment|incompatible type" t = T(u) } func _() { type E struct{ x int } type S struct { f func(struct { x int "foo" }) } type T struct { f func(struct { x int "bar" }) } var s S var t T var u struct{ f func(E) } s = s s = t // ERROR "cannot use .* in assignment|incompatible type"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 08 15:55:44 UTC 2022 - 5.9K bytes - Viewed (0) -
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) -
src/cmd/compile/internal/types2/gcsizes.go
// is the same as unsafe.Alignof(x[0]), but at least 1." return s.Alignof(t.elem) case *Struct: if len(t.fields) == 0 && IsSyncAtomicAlign64(T) { // Special case: sync/atomic.align64 is an // empty struct we recognize as a signal that // the struct it contains must be // 64-bit-aligned. // // This logic is equivalent to the logic in
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 22 19:32:17 UTC 2024 - 4.2K bytes - Viewed (0) -
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)