Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for mapValue (0.21 sec)

  1. scan.go

    		}
    	}
    }
    
    func scanIntoMap(mapValue map[string]interface{}, values []interface{}, columns []string) {
    	for idx, column := range columns {
    		if reflectValue := reflect.Indirect(reflect.Indirect(reflect.ValueOf(values[idx]))); reflectValue.IsValid() {
    			mapValue[column] = reflectValue.Interface()
    			if valuer, ok := mapValue[column].(driver.Valuer); ok {
    				mapValue[column], _ = valuer.Value()
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:57:36 UTC 2024
    - 10K bytes
    - Viewed (0)
  2. src/internal/fmtsort/sort.go

    func Sort(mapValue reflect.Value) SortedMap {
    	if mapValue.Type().Kind() != reflect.Map {
    		return nil
    	}
    	// Note: this code is arranged to not panic even in the presence
    	// of a concurrent map update. The runtime is responsible for
    	// yelling loudly if that happens. See issue 33275.
    	n := mapValue.Len()
    	sorted := make(SortedMap, 0, n)
    	iter := mapValue.MapRange()
    	for iter.Next() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:31:45 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/cel/lazy/lazy_test.go

    	activation := &testActivation{variables: variablesMap}
    
    	// add foo as a string
    	variablesType.Fields["foo"] = apiservercel.NewDeclField("foo", apiservercel.StringType, true, nil, nil)
    	variablesMap.Append("foo", func(_ *MapValue) ref.Val {
    		return types.String("foo-string")
    	})
    
    	exp := "variables.foo == 'foo-string'"
    	v, err := compileAndRun(env, activation, exp)
    	if err != nil {
    		t.Fatalf("%q: %v", exp, err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  4. callbacks/create.go

    			mapValues, ok := values.([]map[string]interface{})
    			if !ok {
    				if v, ok := values.(*[]map[string]interface{}); ok {
    					if *v != nil {
    						mapValues = *v
    					}
    				}
    			}
    
    			if config.LastInsertIDReversed {
    				insertID -= int64(len(mapValues)-1) * schema.DefaultAutoIncrementIncrement
    			}
    
    			for _, mapValue := range mapValues {
    				if mapValue != nil {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Apr 08 03:29:55 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  5. testing/integ-test/src/crossVersionTest/groovy/org/gradle/integtests/AbstractTaskSubclassingBinaryCompatibilityCrossVersionSpec.groovy

                ? 'getInputs().property("input", "value");'
                : ""}
                        Map<String, Object> mapValues = new HashMap<String, Object>();
                        mapValues.put("mapInput", "mapValue");
                        ${previousVersionLeaksInternal ? "((TaskInputs)getInputs())" : "getInputs()"}.properties(mapValues);
                    }
    
                    @TaskAction
                    public void doGet() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  6. src/encoding/gob/doc.go

    TypedValue:
    	int(typeId) Value
    TypeDefinition:
    	int(-typeId) encodingOfWireType
    Value:
    	SingletonValue | StructValue
    SingletonValue:
    	uint(0) FieldValue
    FieldValue:
    	builtinValue | ArrayValue | MapValue | SliceValue | StructValue | InterfaceValue
    InterfaceValue:
    	NilInterfaceValue | NonNilInterfaceValue
    NilInterfaceValue:
    	uint(0)
    NonNilInterfaceValue:
    	ConcreteTypeName TypeSequence InterfaceContents
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/core/v1/generated.pb.go

    					if postbytesIndex < 0 {
    						return ErrInvalidLengthGenerated
    					}
    					if postbytesIndex > l {
    						return io.ErrUnexpectedEOF
    					}
    					mapvalue = make([]byte, mapbyteLen)
    					copy(mapvalue, dAtA[iNdEx:postbytesIndex])
    					iNdEx = postbytesIndex
    				} else {
    					iNdEx = entryPreIndex
    					skippy, err := skipGenerated(dAtA[iNdEx:])
    					if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 1.8M bytes
    - Viewed (0)
  8. testing/public-api-tests/src/integTest/groovy/org/gradle/api/PublicApiIntegrationTest.groovy

                abstract class CustomTask : DefaultTask() {
                    @get:Input
                    abstract val mapValues: MapProperty<String, Int>
    
                    @TaskAction
                    fun customAction() {
                        println("Hello from custom task")
                        // println("- mapValues['alma'] = \${mapValues['alma']}")
                    }
                }
            """
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 08:43:08 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  9. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/AlphabeticalAcceptedApiChangesTask.kt

            val sortedChanges = originalChanges.mapValues {
                sortChanges(it.value)
            }
    
            val mismatches = originalChanges.mapValues {
                findMismatches(it.value, sortedChanges[it.key]!!)
            }.filterValues {
                it.isNotEmpty()
            }
    
            if (mismatches.isNotEmpty()) {
                val formattedMismatches = mismatches.mapValues { mismatch ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 04 14:00:46 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  10. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/objectGraph/reflectObject.kt

                    is FunctionSemantics.Pure -> ObjectReflection.PureFunctionInvocation(
                        type,
                        objectOrigin,
                        objectOrigin.parameterBindings.bindingMap.mapValues { reflect(it.value, context) }
                    )
    
                    is FunctionSemantics.AccessAndConfigure -> {
                        when (objectOrigin) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 12:25:46 UTC 2024
    - 10.7K bytes
    - Viewed (0)
Back to top