- Sort Score
- Result 10 results
- Languages All
Results 221 - 230 of 987 for typeOf (0.15 sec)
-
src/unique/clone_test.go
} func testCloneSeq[T any](t *testing.T, want cloneSeq) { typName := reflect.TypeFor[T]().Name() typ := abi.TypeOf(*new(T)) t.Run(typName, func(t *testing.T) { got := makeCloneSeq(typ) if !reflect.DeepEqual(got, want) { t.Errorf("unexpected cloneSeq for type %s: got %#v, want %#v", typName, got, want) } })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 22 18:14:07 UTC 2024 - 1K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/scheme.go
panic(err) } } } // KnownTypes returns the types known for the given version. func (s *Scheme) KnownTypes(gv schema.GroupVersion) map[string]reflect.Type { types := make(map[string]reflect.Type) for gvk, t := range s.gvkToType { if gv != gvk.GroupVersion() { continue } types[gvk.Kind] = t } return types }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Dec 18 04:27:38 UTC 2022 - 25.2K bytes - Viewed (0) -
test/fixedbugs/bug177.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import "reflect" type S1 struct{ i int } type S2 struct{ S1 } func main() { typ := reflect.TypeOf(S2{}) f := typ.Field(0) if f.Name != "S1" || f.Anonymous != true { println("BUG: ", f.Name, f.Anonymous) return } f, ok := typ.FieldByName("S1") if !ok {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 17 04:49:30 UTC 2012 - 558 bytes - Viewed (0) -
test/reflectmethod1.go
// The linker can prune methods that are not directly called or // assigned to interfaces, but only if reflect.Type.Method is // never used. Test it here. package main import "reflect" var called = false type M int func (m M) UniqueMethodName() { called = true } var v M func main() { reflect.TypeOf(v).Method(0).Func.Interface().(func(M))(v) if !called { panic("UniqueMethodName not called") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 11 21:19:20 UTC 2016 - 578 bytes - Viewed (0) -
src/main/webapp/js/admin/plugins/form-validator/lang/ko.js
* * @version 2.3.77 * @website http://formvalidator.net/ * @author Victor Jonsson, http://victorjonsson.se * @license MIT */
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Mon Jan 01 05:12:47 UTC 2018 - 3K bytes - Viewed (0) -
src/main/webapp/js/help.js
$("#langSearchOption").prop("selectedIndex", 0); $("#sortSearchOption").prop("selectedIndex", 0); $("#numSearchOption").prop("selectedIndex", 0); return false; }); if (typeof $.fn.suggestor === "function") { $("#query").suggestor({ ajaxinfo: { url: contextPath + "/api/v1/suggest-words", fn: ["_default", "content", "title"], num: 10,
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Thu Mar 30 05:45:24 UTC 2023 - 2K bytes - Viewed (0) -
src/cmd/link/internal/ld/testdata/deadcode/ifacemethod6.go
// but other methods must be eliminated. package main import "reflect" type S int func (s S) M() { println("S.M") } func (s S) N() { println("S.N") } type T float64 func (t T) F(s S) {} func main() { var t T meth, _ := reflect.TypeOf(t).MethodByName("F") ft := meth.Type at := ft.In(1) v := reflect.New(at).Elem() methV := v.MethodByName("M")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 01 15:07:26 UTC 2023 - 666 bytes - Viewed (0) -
src/main/webapp/js/admin/popper.min.js
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Fri Feb 07 10:28:50 UTC 2020 - 20.8K bytes - Viewed (0) -
src/runtime/sizeof_test.go
var tests = []struct { val any // type as a value _32bit uintptr // size on 32bit platforms _64bit uintptr // size on 64bit platforms }{ {runtime.G{}, 272, 432}, // g, but exported for testing {runtime.Sudog{}, 56, 88}, // sudog, but exported for testing } for _, tt := range tests { want := tt._32bit if _64bit { want = tt._64bit } got := reflect.TypeOf(tt.val).Size() if want != got {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 22 22:07:41 UTC 2024 - 892 bytes - Viewed (0) -
src/main/webapp/js/index.js
$("#langSearchOption").prop("selectedIndex", 0); $("#sortSearchOption").prop("selectedIndex", 0); $("#numSearchOption").prop("selectedIndex", 0); return false; }); if (typeof $.fn.suggestor === "function") { $("#contentQuery").suggestor({ ajaxinfo: { url: contextPath + "/api/v1/suggest-words", fn: ["_default", "content", "title"], num: 10,
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Thu Mar 30 05:45:24 UTC 2023 - 2K bytes - Viewed (0)