- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 8,088 for StructI (0.1 sec)
-
src/go/types/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: Wed Apr 03 18:48:38 UTC 2024 - 4.4K bytes - Viewed (0) -
src/internal/fmtsort/sort.go
// - NaN compares less than non-NaN floats // - bool compares false before true // - complex compares real, then imag // - pointers compare by machine address // - channel values compare by machine address // - structs compare each field in turn // - arrays compare each element in turn. // Otherwise identical arrays compare by length. // - interface values compare first by reflect.Type describing the concrete type
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 19:31:45 UTC 2024 - 4.9K bytes - Viewed (0) -
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) -
test/fixedbugs/gcc80226.go
// license that can be found in the LICENSE file. // The gccgo compiler crashed while compiling a function that returned // multiple zero-sized structs. // https://gcc.gnu.org/PR80226. package p type S struct{} func F() (S, S) { return S{}, S{}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 28 20:05:34 UTC 2017 - 373 bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/composite/composite.go
} for _, typ := range structuralTypes { strct, ok := typeparams.Deref(typ).Underlying().(*types.Struct) if !ok { // skip non-struct composite literals continue } if isLocalType(pass, typ) { // allow unkeyed locally defined composite literal continue } // check if the struct contains an unkeyed field allKeyValue := true var suggestedFixAvailable = len(cl.Elts) == strct.NumFields()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 4.4K bytes - Viewed (0) -
test/fixedbugs/issue9634.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Issue 9634: Structs are incorrectly unpacked when passed as an argument // to append. package main func main() { s := struct{ t []int u int }{} _ = append(s, 0) // ERROR "must be a slice|must be slice|not a slice"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 04 21:22:23 UTC 2020 - 403 bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/swagger_doc_generator.go
// VerifySwaggerDocsExist writes in a io.Writer a list of structs and fields that // are missing of documentation. func VerifySwaggerDocsExist(kubeTypes []KubeTypes, w io.Writer) (int, error) { missingDocs := 0 buffer := newBuffer() for _, kubeType := range kubeTypes { structName := kubeType[0].Name if kubeType[0].Doc == "" { format := "Missing documentation for the struct itself: %s\n" s := fmt.Sprintf(format, structName)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Aug 03 07:33:58 UTC 2017 - 7K bytes - Viewed (0) -
src/cmd/compile/internal/types2/typestring_test.go
// slices dup("[]int"), dup("[][]int"), // structs dup("struct{}"), dup("struct{x int}"), {`struct { x, y int z float32 "foo" }`, `struct{x int; y int; z float32 "foo"}`}, {`struct { string elems []complex128 }`, `struct{string; elems []complex128}`}, // pointers dup("*int"), dup("***struct{}"), dup("*struct{a int; b float32}"), // functions dup("func()"),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 28 17:58:07 UTC 2023 - 3.9K bytes - Viewed (0) -
cmd/format-meta.go
// formatMetaV1 should be inherited by backend format structs. Please look at format-fs.go // and format-xl.go for details. // Ideally we will never have a situation where we will have to change the // fields of this struct and deal with related migration. type formatMetaV1 struct { // Version of the format config. Version string `json:"version"`
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Apr 23 18:58:53 UTC 2021 - 1.7K bytes - Viewed (0) -
test/cmp6.go
var a3 [0]func() use(a1 == a1) use(a2 == a2) // ERROR "invalid operation|invalid comparison" use(a3 == a3) // ERROR "invalid operation|invalid comparison" // Comparison of structs should have a good message use(t3 == t3) // ERROR "struct|expected|cannot compare" use(t4 == t4) // ERROR "cannot be compared|non-comparable|cannot compare" // Slices, functions, and maps too. var x []int var f func() var m map[int]int
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 01 21:49:31 UTC 2020 - 2.2K bytes - Viewed (0)