- Sort Score
- Result 10 results
- Languages All
Results 191 - 200 of 987 for typeOf (0.12 sec)
-
test/reflectmethod3.go
// 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 type MyType interface { Method(int) reflect.Method } func main() { var t MyType = reflect.TypeOf(v) t.Method(0).Func.Interface().(func(M))(v) if !called {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 11 21:19:20 UTC 2016 - 651 bytes - Viewed (0) -
test/fixedbugs/issue52788a.go
import ( "fmt" "reflect" "os" ) func f(next func() bool) { for b := next(); b; b = next() { fmt.Printf("%v\n", b) os.Exit(0) } } func main() { next := reflect.MakeFunc(reflect.TypeOf((func() bool)(nil)), func(_ []reflect.Value) []reflect.Value { return []reflect.Value{reflect.ValueOf(true)} }) reflect.ValueOf(f).Call([]reflect.Value{next})
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 09 17:29:53 UTC 2022 - 600 bytes - Viewed (0) -
src/main/webapp/js/admin/plugins/form-validator/lang/es.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/admin/plugins/form-validator/lang/fr.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 - 2.6K bytes - Viewed (0) -
src/internal/fuzz/minimize.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package fuzz import ( "reflect" ) func isMinimizable(t reflect.Type) bool { return t == reflect.TypeOf("") || t == reflect.TypeOf([]byte(nil)) } func minimizeBytes(v []byte, try func([]byte) bool, shouldStop func() bool) { tmp := make([]byte, len(v)) // If minimization was successful at any point during minimizeBytes,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 07 21:15:51 UTC 2021 - 2.3K bytes - Viewed (0) -
src/main/webapp/js/admin/plugins/form-validator/lang/pt.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 - 2.7K bytes - Viewed (2) -
staging/src/k8s.io/apimachinery/pkg/api/meta/help_test.go
const ( fakeObjectItemsNum = 1000 exemptObjectIndex = fakeObjectItemsNum / 4 ) type SampleSpec struct { Flied int } type FooSpec struct { Flied int } type FooList struct { metav1.TypeMeta metav1.ListMeta Items []Foo } func (s *FooList) DeepCopyObject() runtime.Object { panic("unimplemented") } type SampleList struct { metav1.TypeMeta metav1.ListMeta Items []Sample }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 29 13:40:46 UTC 2023 - 12.1K bytes - Viewed (0) -
samples/bookinfo/src/productpage/static/tailwind/tailwind.css
i.content.files)){if(!i.content.files.every(t=>typeof t=="string"?!0:!(typeof t?.raw!="string"||t?.extension&&typeof t?.extension!="string")))return!1;if(typeof i.content.extract=="object"){for(let t of Object.values(i.content.extract))if(typeof t!="function")return!1}else if(!(i.content.extract===void 0||typeof i.content.extract=="function"))return!1;if(typeof i.content.transform=="object"){for(let t of Object.values(i.content.transform))if(typeof t!="function")return!1}else if(!(i.content.transform===void...
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 28 14:48:01 UTC 2024 - 357.1K bytes - Viewed (1) -
test/fixedbugs/issue28748.go
text := fmt.Sprintf("%s", e) // handles both string and runtime.errorString if !strings.HasPrefix(text, "reflect:") { panic("wanted a reflect error, got this instead:\n" + text) } }() r := reflect.MakeFunc(reflect.TypeOf(func() error { return nil }), func(args []reflect.Value) []reflect.Value { var x [1]reflect.Value return x[:] }).Interface().(func() error) r()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 06 21:23:29 UTC 2019 - 712 bytes - Viewed (0) -
test/fixedbugs/bug510.dir/a.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 07 17:29:52 UTC 2020 - 304 bytes - Viewed (0)