Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 223 for mapvar (0.1 sec)

  1. src/runtime/runtime-lldb_test.go

    		} else if !strings.Contains(string(out), "_developer") {
    			t.Skip("Not in _developer group")
    		}
    	}
    }
    
    const lldbHelloSource = `
    package main
    import "fmt"
    func main() {
    	mapvar := make(map[string]string,5)
    	mapvar["abc"] = "def"
    	mapvar["ghi"] = "jkl"
    	intvar := 42
    	ptrvar := &intvar
    	fmt.Println("hi") // line 10
    	_ = ptrvar
    }
    `
    
    const lldbScriptSource = `
    import sys
    sys.path.append(sys.argv[1])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. src/runtime/runtime-gdb_test.go

    var gslice []string
    func main() {
    	mapvar := make(map[string]string, ` + strconv.FormatInt(abi.MapBucketCount+9, 10) + `)
    	slicemap := make(map[string][]string,` + strconv.FormatInt(abi.MapBucketCount+3, 10) + `)
        chanint := make(chan int, 10)
        chanstr := make(chan string, 10)
        chanint <- 99
    	chanint <- 11
        chanstr <- "spongepants"
        chanstr <- "squarebob"
    	mapvar["abc"] = "def"
    	mapvar["ghi"] = "jkl"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/dwarf_test.go

    	mustHaveDWARF(t)
    	t.Parallel()
    
    	const prog = `
    package main
    
    import "fmt"
    
    type CustomInt int
    
    func testfn[T any](arg T) {
    	var mapvar = make(map[int]T)
    	mapvar[0] = arg
    	fmt.Println(arg, mapvar)
    }
    
    func main() {
    	testfn(CustomInt(3))
    }
    `
    
    	dir := t.TempDir()
    	f := gobuild(t, dir, prog, NoOpt)
    	defer f.Close()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 01:38:11 UTC 2024
    - 48.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/staticinit/sched.go

    	// Insert assignment into function body; mark body finished.
    	fn.Body = []ir.Node{as}
    	typecheck.FinishFuncBody()
    
    	if base.Debug.WrapGlobalMapDbg > 1 {
    		fmt.Fprintf(os.Stderr, "=-= mapvar is %v\n", nm)
    		fmt.Fprintf(os.Stderr, "=-= newfunc is %+v\n", fn)
    	}
    
    	recordFuncForVar(nm, fn)
    
    	return fn
    }
    
    // mapinitgen is a counter used to uniquify compiler-generated
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 17:16:14 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/authentication/cel/mapper.go

    */
    
    package cel
    
    import (
    	"context"
    	"fmt"
    
    	"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
    )
    
    var _ ClaimsMapper = &mapper{}
    var _ UserMapper = &mapper{}
    
    // mapper implements the ClaimsMapper and UserMapper interface.
    type mapper struct {
    	compilationResults []CompilationResult
    }
    
    // CELMapper is a struct that holds the compiled expressions for
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 20:16:09 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  6. src/expvar/expvar.go

    //
    // The package is sometimes only imported for the side effect of
    // registering its HTTP handler and the above variables. To use it
    // this way, link this package into your program:
    //
    //	import _ "expvar"
    package expvar
    
    import (
    	"encoding/json"
    	"internal/godebug"
    	"log"
    	"math"
    	"net/http"
    	"os"
    	"runtime"
    	"slices"
    	"strconv"
    	"sync"
    	"sync/atomic"
    	"unicode/utf8"
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 21:32:11 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  7. staging/src/k8s.io/cli-runtime/pkg/resource/mapper.go

    import (
    	"fmt"
    	"reflect"
    
    	"k8s.io/apimachinery/pkg/api/meta"
    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/apimachinery/pkg/runtime/schema"
    )
    
    // Mapper is a convenience struct for holding references to the interfaces
    // needed to create Info for arbitrary objects.
    type mapper struct {
    	// localFn indicates the call can't make server requests
    	localFn func() bool
    
    	restMapperFn RESTMapperFunc
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 03 10:53:18 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/runtime/mapper.go

    func NewEquivalentResourceRegistry() EquivalentResourceRegistry {
    	return &equivalentResourceRegistry{}
    }
    
    // NewEquivalentResourceRegistryWithIdentity creates a resource mapper with a custom identity function.
    // If "" is returned by the function, GroupResource#String is used as the identity.
    // GroupResources with the same identity string are considered equivalent.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 18:26:06 UTC 2019
    - 3.6K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/model/types_test.go

    	nestedVal.AddField(flags)
    	nestedVal.AddField(dates)
    	nested := apiservercel.NewField(3, "nested")
    	nested.Ref = testValue(t, 4, nestedVal)
    	mapVal := apiservercel.NewMapValue()
    	mapVal.AddField(name)
    	mapVal.AddField(nested)
    	//rule := rt.ConvertToRule(testValue(t, 11, mapVal))
    	//if rule == nil {
    	//	t.Error("map could not be converted to rule")
    	//}
    	//if rule.GetID() != 11 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 08 15:52:31 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api-builders/src/main/java/org/gradle/tooling/internal/provider/runner/ClientBuildEventGenerator.java

            this.fallback = fallback;
            List<Mapper> mapperBuilder = new ArrayList<>(mappers.size());
            Set<BuildOperationTracker> trackers = new LinkedHashSet<>();
            for (BuildOperationMapper<?, ?> mapper : mappers) {
                if (mapper.isEnabled(subscriptions)) {
                    mapperBuilder.add(new Enabled(mapper, progressEventConsumer));
                    collectTrackers(trackers, mapper.getTrackers());
                } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 9K bytes
    - Viewed (0)
Back to top