Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,128 for reflect (0.25 sec)

  1. clause/expression.go

    		case map[string]interface{}:
    			for k, v := range value {
    				namedMap[k] = v
    			}
    		default:
    			var appendFieldsToMap func(reflect.Value)
    			appendFieldsToMap = func(reflectValue reflect.Value) {
    				reflectValue = reflect.Indirect(reflectValue)
    				switch reflectValue.Kind() {
    				case reflect.Struct:
    					modelType := reflectValue.Type()
    					for i := 0; i < modelType.NumField(); i++ {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Tue Oct 10 06:45:48 GMT 2023
    - 8.3K bytes
    - Viewed (0)
  2. schema/schema.go

    	}
    
    	value := reflect.ValueOf(dest)
    	if value.Kind() == reflect.Ptr && value.IsNil() {
    		value = reflect.New(value.Type().Elem())
    	}
    	modelType := reflect.Indirect(value).Type()
    
    	if modelType.Kind() == reflect.Interface {
    		modelType = reflect.Indirect(reflect.ValueOf(dest)).Elem().Type()
    	}
    
    	for modelType.Kind() == reflect.Slice || modelType.Kind() == reflect.Array || modelType.Kind() == reflect.Ptr {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Tue Oct 10 06:50:29 GMT 2023
    - 13.7K bytes
    - Viewed (0)
  3. utils/utils.go

    		}
    	}
    	return false
    }
    
    func AssertEqual(x, y interface{}) bool {
    	if reflect.DeepEqual(x, y) {
    		return true
    	}
    	if x == nil || y == nil {
    		return false
    	}
    
    	xval := reflect.ValueOf(x)
    	yval := reflect.ValueOf(y)
    	if xval.Kind() == reflect.Ptr && xval.IsNil() ||
    		yval.Kind() == reflect.Ptr && yval.IsNil() {
    		return false
    	}
    
    	if valuer, ok := x.(driver.Valuer); ok {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Apr 22 06:43:02 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/reflect/Types.java

    import java.io.Serializable;
    import java.lang.reflect.AnnotatedElement;
    import java.lang.reflect.Array;
    import java.lang.reflect.GenericArrayType;
    import java.lang.reflect.GenericDeclaration;
    import java.lang.reflect.InvocationHandler;
    import java.lang.reflect.InvocationTargetException;
    import java.lang.reflect.Method;
    import java.lang.reflect.ParameterizedType;
    import java.lang.reflect.Proxy;
    import java.lang.reflect.Type;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  5. api/go1.18.txt

    pkg net/netip, type Prefix struct
    pkg reflect, const Pointer = 22
    pkg reflect, const Pointer Kind
    pkg reflect, func PointerTo(Type) Type
    pkg reflect, method (*MapIter) Reset(Value)
    pkg reflect, method (Value) CanComplex() bool
    pkg reflect, method (Value) CanFloat() bool
    pkg reflect, method (Value) CanInt() bool
    pkg reflect, method (Value) CanUint() bool
    pkg reflect, method (Value) FieldByIndexErr([]int) (Value, error)
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 17 20:31:46 GMT 2023
    - 13K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/WriteReplaceOverridesTest.java

    import static java.lang.reflect.Modifier.PRIVATE;
    import static java.lang.reflect.Modifier.PROTECTED;
    import static java.lang.reflect.Modifier.PUBLIC;
    import static java.util.Arrays.asList;
    
    import com.google.common.base.Optional;
    import com.google.common.reflect.ClassPath;
    import com.google.common.reflect.ClassPath.ClassInfo;
    import com.google.common.reflect.TypeToken;
    import java.lang.reflect.Method;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/WriteReplaceOverridesTest.java

    import static java.lang.reflect.Modifier.PRIVATE;
    import static java.lang.reflect.Modifier.PROTECTED;
    import static java.lang.reflect.Modifier.PUBLIC;
    import static java.util.Arrays.asList;
    
    import com.google.common.base.Optional;
    import com.google.common.reflect.ClassPath;
    import com.google.common.reflect.ClassPath.ClassInfo;
    import com.google.common.reflect.TypeToken;
    import java.lang.reflect.Method;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  8. internal/grid/types_test.go

    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package grid
    
    import (
    	"reflect"
    	"testing"
    
    	"github.com/tinylib/msgp/msgp"
    )
    
    func TestMarshalUnmarshalMSS(t *testing.T) {
    	v := MSS{"abc": "def", "ghi": "jkl"}
    	bts, err := v.MarshalMsg(nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Nov 21 01:09:35 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  9. callbacks/visit_map_test.go

    		t.Fatalf("loaded should be true")
    	}
    
    	// t1 already exist but t2 not
    	if loaded = loadOrStoreVisitMap(&vm, reflect.ValueOf([]*testM{&t1, &t2, &t3})); loaded {
    		t.Fatalf("loaded should be false")
    	}
    
    	if loaded = loadOrStoreVisitMap(&vm, reflect.ValueOf([]*testM{&t2, &t3})); !loaded {
    		t.Fatalf("loaded should be true")
    	}
    Go
    - Registered: Sun Feb 25 09:35:10 GMT 2024
    - Last Modified: Thu Mar 17 15:53:31 GMT 2022
    - 780 bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/reflect/TypeVisitorTest.java

     * limitations under the License.
     */
    
    package com.google.common.reflect;
    
    import java.lang.reflect.GenericArrayType;
    import java.lang.reflect.ParameterizedType;
    import java.lang.reflect.Type;
    import java.lang.reflect.TypeVariable;
    import java.lang.reflect.WildcardType;
    import java.util.ArrayList;
    import java.util.EnumSet;
    import junit.framework.TestCase;
    
    /**
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.7K bytes
    - Viewed (0)
Back to top