Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,332 for REFLECT (0.13 sec)

  1. operator/pkg/util/reflect.go

    	vv := reflect.ValueOf(v)
    	return vv.Kind() == reflect.Ptr && vv.Elem().Kind() == reflect.Interface && vv.Elem().Elem().Kind() == reflect.Slice
    }
    
    // IsTypeStructPtr reports whether v is a struct ptr type.
    func IsTypeStructPtr(t reflect.Type) bool {
    	if t == reflect.TypeOf(nil) {
    		return false
    	}
    	return t.Kind() == reflect.Ptr && t.Elem().Kind() == reflect.Struct
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 8.6K bytes
    - Viewed (0)
  2. okcurl/src/main/resources/META-INF/native-image/okhttp3/okcurl/reflect-config.json

    Jesse Wilson <******@****.***> 1703114827 -0500
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Dec 20 23:27:07 UTC 2023
    - 4 bytes
    - Viewed (0)
  3. okhttp/src/main/resources/META-INF/native-image/okhttp/okhttp/reflect-config.json

    Jesse Wilson <******@****.***> 1703114827 -0500
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Dec 20 23:27:07 UTC 2023
    - 438 bytes
    - Viewed (0)
  4. logger/sql.go

    var convertibleTypes = []reflect.Type{reflect.TypeOf(time.Time{}), reflect.TypeOf(false), reflect.TypeOf([]byte{})}
    
    // RegEx matches only numeric values
    var numericPlaceholderRe = regexp.MustCompile(`\$\d+\$`)
    
    func isNumeric(k reflect.Kind) bool {
    	switch k {
    	case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
    		return true
    	case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Thu Mar 21 08:00:02 UTC 2024
    - 5K bytes
    - Viewed (0)
  5. src/reflect/badlinkname.go

    //go:linkname badlinkname_rtype_AssignableTo reflect.(*rtype).AssignableTo
    func badlinkname_rtype_AssignableTo(*rtype, Type) bool
    
    //go:linkname badlinkname_rtype_Bits reflect.(*rtype).Bits
    func badlinkname_rtype_Bits(*rtype) int
    
    //go:linkname badlinkname_rtype_ChanDir reflect.(*rtype).ChanDir
    func badlinkname_rtype_ChanDir(*rtype) ChanDir
    
    //go:linkname badlinkname_rtype_Comparable reflect.(*rtype).Comparable
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  6. src/reflect/type_test.go

    		{"func(func(int, int))", reflect.TypeOf(func(func(int, int)) {}), false},
    		{"int64", reflect.TypeOf(int64(1)), false},
    		{"uint64", reflect.TypeOf(uint64(1)), false},
    		{"*[4]int", reflect.TypeOf(&[4]int{}), true},
    		{"chan int64", reflect.TypeOf(make(chan int64)), false},
    		{"map[int]int", reflect.TypeOf(make(map[int]int)), true},
    		{"string", reflect.TypeOf(""), true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 23:39:44 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  7. utils/tests/utils.go

    				}
    				return
    			}
    		}
    
    		if reflect.ValueOf(got).Kind() == reflect.Struct {
    			if reflect.ValueOf(expect).Kind() == reflect.Struct {
    				if reflect.ValueOf(got).NumField() == reflect.ValueOf(expect).NumField() {
    					exported := false
    					for i := 0; i < reflect.ValueOf(got).NumField(); i++ {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Mar 10 09:21:56 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/api/apitesting/roundtrip/construct.go

    		v.Set(reflect.ValueOf(true).Convert(t))
    
    	case reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
    		// use Convert to set into int alias types and different int widths correctly
    		v.Set(reflect.ValueOf(dataInt).Convert(t))
    
    	case reflect.Float32, reflect.Float64:
    		// use Convert to set into float types
    		v.Set(reflect.ValueOf(float32(dataInt) + 0.5).Convert(t))
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 27 19:12:59 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  9. src/cmd/gofmt/rewrite.go

    	var rewriteVal func(val reflect.Value) reflect.Value
    	rewriteVal = func(val reflect.Value) reflect.Value {
    		// don't bother if val is invalid to start with
    		if !val.IsValid() {
    			return reflect.Value{}
    		}
    		val = apply(rewriteVal, val)
    		clear(m)
    		if match(m, pat, val) {
    			val = subst(m, repl, reflect.ValueOf(val.Interface().(ast.Node).Pos()))
    		}
    		return val
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 27 22:07:13 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  10. schema/utils.go

    	}
    	return reflect.StructTag(fmt.Sprintf(`gorm:"%s;%s"`, value, t))
    }
    
    // GetRelationsValues get relations's values from a reflect value
    func GetRelationsValues(ctx context.Context, reflectValue reflect.Value, rels []*Relationship) (reflectResults reflect.Value) {
    	for _, rel := range rels {
    		reflectResults = reflect.MakeSlice(reflect.SliceOf(reflect.PtrTo(rel.FieldSchema.ModelType)), 0, 1)
    
    		appendToResults := func(value reflect.Value) {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Sat Aug 19 13:35:14 UTC 2023
    - 5.5K bytes
    - Viewed (0)
Back to top