- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 713 for Embeddeds (0.21 sec)
-
test/fixedbugs/bug478.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Using the same unexported name for a method as a method on an // imported embedded type caused a gccgo compilation failure.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 319 bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/internal/driver/webhtml.go
func addTemplates(templates *template.Template) { // Load specified file. loadFile := func(fname string) string { data, err := embeddedFiles.ReadFile(fname) if err != nil { fmt.Fprintf(os.Stderr, "internal/driver: embedded file %q not found\n", fname) os.Exit(1) } return string(data) } loadCSS := func(fname string) string { return `<style type="text/css">` + "\n" + loadFile(fname) + `</style>` + "\n" }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 19:48:28 UTC 2024 - 2.6K bytes - Viewed (0) -
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r35/BuildEnvironmentCrossVersionSpec.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 16 10:10:39 UTC 2024 - 3.1K bytes - Viewed (0) -
schema/schema.go
if field, ok := schema.FieldsByName[name]; ok { return field } return nil } // LookUpFieldByBindName looks for the closest field in the embedded struct. // // type Struct struct { // Embedded struct { // ID string // is selected by LookUpFieldByBindName([]string{"Embedded", "ID"}, "ID") // } // ID string // is selected by LookUpFieldByBindName([]string{"ID"}, "ID") // }
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Wed Jun 12 10:52:33 UTC 2024 - 13.7K bytes - Viewed (0) -
tests/scan_test.go
package tests_test import ( "reflect" "sort" "strings" "testing" "time" "gorm.io/gorm" . "gorm.io/gorm/utils/tests" ) type PersonAddressInfo struct { Person *Person `gorm:"embedded"` Address *Address `gorm:"embedded"` } func TestScan(t *testing.T) { user1 := User{Name: "ScanUser1", Age: 1} user2 := User{Name: "ScanUser2", Age: 10} user3 := User{Name: "ScanUser3", Age: 20}
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Wed Jun 12 10:57:36 UTC 2024 - 10.9K bytes - Viewed (0) -
test/ken/embed.go
// run // Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // 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 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 03 17:03:15 UTC 2016 - 4.3K bytes - Viewed (0) -
test/fixedbugs/issue6703i.go
// errorcheck // Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Check for cycles in an embedded struct literal's method value. package embedlitmethvalue type T int func (T) m() int { _ = x return 0 } type E struct{ T }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 23 20:27:09 UTC 2022 - 407 bytes - Viewed (0) -
test/fixedbugs/issue6703p.go
// errorcheck // Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Check for cycles in an embedded struct's method call. package embedmethcall type T int func (T) m() int { _ = x return 0 } type E struct{ T } var ( e E x = e.m() // ERROR "initialization cycle|depends upon itself"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 23 20:27:09 UTC 2022 - 404 bytes - Viewed (0) -
test/fixedbugs/issue10219.go
// Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Issue 10219: failure of inlinable function that uses embedded types // in an anonymous struct via :=.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jul 15 06:04:51 UTC 2015 - 297 bytes - Viewed (0) -
pkg/generated/openapi/cmd/models-schema/main.go
schemaDefs := make(map[string]spec.Schema, len(defs)) for k, v := range defs { // Replace top-level schema with v2 if a v2 schema is embedded // so that the output of this program is always in OpenAPI v2. // This is done by looking up an extension that marks the embedded v2 // schema, and, if the v2 schema is found, make it the resulting schema for // the type.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:52 UTC 2024 - 2.6K bytes - Viewed (0)