Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 987 for typeOf (0.09 sec)

  1. src/main/webapp/js/admin/plugins/form-validator/lang/ka.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
    - 5.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/cel/ip.go

    }
    
    // Equal implements ref.Val.Equal.
    func (d IP) Equal(other ref.Val) ref.Val {
    	otherD, ok := other.(IP)
    	if !ok {
    		return types.ValOrErr(other, "no such overload")
    	}
    	return types.Bool(d.Addr == otherD.Addr)
    }
    
    // Type implements ref.Val.Type.
    func (d IP) Type() ref.Type {
    	return IPType
    }
    
    // Value implements ref.Val.Value.
    func (d IP) Value() any {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 11:02:33 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  3. src/errors/wrap.go

    // As(target) returns true. In the latter case, the As method is responsible for
    // setting target.
    //
    // An error type might provide an As method so it can be treated as if it were a
    // different error type.
    //
    // As panics if target is not a non-nil pointer to either a type that implements
    // error, or to any interface type.
    func As(err error, target any) bool {
    	if err == nil {
    		return false
    	}
    	if target == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 17:13:04 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  4. test/fixedbugs/issue22605.go

    // license that can be found in the LICENSE file.
    
    // We were picking up a special noalg type from typelinks.
    
    package main
    
    import "reflect"
    
    func f(m map[string]int) int {
    	return m["a"]
    }
    
    func g(m map[[8]string]int) int {
    	t := reflect.ArrayOf(8, reflect.TypeOf(""))
    	a := reflect.New(t).Elem()
    	return m[a.Interface().([8]string)]
    }
    
    func main() {
    	m := map[[8]string]int{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 07 22:29:48 UTC 2017
    - 504 bytes
    - Viewed (0)
  5. pkg/registry/authorization/util/helpers_test.go

    		"Verb",
    		"Namespace",
    		"Group",
    		"Version",
    		"Resource",
    		"Subresource",
    		"Name",
    
    		// Fields we copy in NonResourceAttributesFrom
    		"Path",
    		"Verb",
    	)
    	reflect.TypeOf(authorizationapi.ResourceAttributes{}).FieldByNameFunc(func(name string) bool {
    		if !knownResourceAttributesNames.Has(name) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 25 16:06:18 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  6. src/main/webapp/js/admin/plugins/form-validator/logic.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.1K bytes
    - Viewed (0)
  7. src/main/webapp/js/admin/plugins/form-validator/lang/ca.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)
  8. test/typeparam/issue48253.go

    package main
    
    import (
    	"reflect"
    )
    
    type A[T any] struct {
    	B[int]
    }
    
    type B[T any] struct {
    }
    
    func (b B[T]) Bat() {
    	t := new(T)
    	if tt := reflect.TypeOf(t); tt.Kind() != reflect.Pointer || tt.Elem().Kind() != reflect.Int {
    		panic("unexpected type, want: *int, got: "+tt.String())
    	}
    }
    
    type Foo struct {
    	A[string]
    }
    func main() {
    	Foo{}.A.Bat()
    	Foo{}.A.B.Bat()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 551 bytes
    - Viewed (0)
  9. test/fixedbugs/issue39541.go

    // license that can be found in the LICENSE file.
    
    package main
    
    import "reflect"
    
    func sub(args []reflect.Value) []reflect.Value {
    	type A struct {
    		s int
    		t int
    	}
    	return []reflect.Value{reflect.ValueOf(A{1, 2})}
    }
    
    func main() {
    	f := reflect.MakeFunc(reflect.TypeOf((func() interface{})(nil)), sub).Interface().(func() interface{})
    	c := make(chan bool, 100)
    	for i := 0; i < 100; i++ {
    		go func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 19 02:11:35 UTC 2020
    - 631 bytes
    - Viewed (0)
  10. 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)
Back to top