Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 987 for typeOf (0.28 sec)

  1. src/cmd/link/internal/ld/testdata/deadcode/ifacemethod3.go

    // if the type is "indirectly" converted to an interface
    // using reflection with a method descriptor as intermediate.
    
    package main
    
    import "reflect"
    
    type S int
    
    func (s S) M() { println("S.M") }
    
    type I interface{ M() }
    
    type T float64
    
    func (t T) F(s S) {}
    
    func main() {
    	var t T
    	ft := reflect.TypeOf(t).Method(0).Type
    	at := ft.In(1)
    	v := reflect.New(at).Elem()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 15 21:49:19 UTC 2021
    - 615 bytes
    - Viewed (0)
  2. 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 (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. test/fixedbugs/bug510.dir/a.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package a
    
    import "reflect"
    
    type A = map[int] bool
    
    func F() interface{} {
    	return reflect.New(reflect.TypeOf((*A)(nil))).Elem().Interface()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 07 17:29:52 UTC 2020
    - 304 bytes
    - Viewed (0)
  9. 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)
  10. src/cmd/compile/internal/ssa/sizeof_test.go

    	var tests = []struct {
    		val    interface{} // type as a value
    		_32bit uintptr     // size on 32bit platforms
    		_64bit uintptr     // size on 64bit platforms
    	}{
    		{Value{}, 72, 112},
    		{Block{}, 164, 304},
    		{LocalSlot{}, 28, 40},
    		{valState{}, 28, 40},
    	}
    
    	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: Tue Dec 08 01:46:40 UTC 2020
    - 855 bytes
    - Viewed (0)
Back to top