Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 522 for Map (0.03 sec)

  1. src/internal/fmtsort/sort.go

    // that are valid map keys.
    package fmtsort
    
    import (
    	"cmp"
    	"reflect"
    	"slices"
    )
    
    // Note: Throughout this package we avoid calling reflect.Value.Interface as
    // it is not always legal to do so and it's easier to avoid the issue than to face it.
    
    // SortedMap is a slice of KeyValue pairs that simplifies sorting
    // and iterating over map entries.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:31:45 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  2. test/codegen/mapaccess.go

    	m[k]--
    }
    
    func mapCompoundAssignmentString() {
    	m := make(map[string]string, 0)
    	var k string = "key"
    
    	// 386:-".*mapaccess"
    	// amd64:-".*mapaccess"
    	// arm:-".*mapaccess"
    	// arm64:-".*mapaccess"
    	m[k] += "value"
    }
    
    var sinkAppend bool
    
    func mapAppendAssignmentInt8() {
    	m := make(map[int8][]int8, 0)
    	var k int8 = 0
    
    	// 386:-".*mapaccess"
    	// amd64:-".*mapaccess"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 18 17:36:38 UTC 2022
    - 9.1K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/testinggoroutine/util.go

    func localFunctionDecls(info *types.Info, files []*ast.File) func(*types.Func) *ast.FuncDecl {
    	var fnDecls map[*types.Func]*ast.FuncDecl // computed lazily
    	return func(f *types.Func) *ast.FuncDecl {
    		if f != nil && fnDecls == nil {
    			fnDecls = make(map[*types.Func]*ast.FuncDecl)
    			for _, file := range files {
    				for _, decl := range file.Decls {
    					if fnDecl, ok := decl.(*ast.FuncDecl); ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  4. src/runtime/pprof/label.go

    	parentLabels := labelValue(ctx)
    	childLabels := make(labelMap, len(parentLabels))
    	// TODO(matloob): replace the map implementation with something
    	// more efficient so creating a child context WithLabels doesn't need
    	// to clone the map.
    	for k, v := range parentLabels {
    		childLabels[k] = v
    	}
    	for _, label := range labels.list {
    		childLabels[label.key] = label.value
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/telemetry/internal/counter/parse.go

    // license that can be found in the LICENSE file.
    
    package counter
    
    import (
    	"bytes"
    	"fmt"
    	"strings"
    	"unsafe"
    
    	"golang.org/x/telemetry/internal/mmap"
    )
    
    type File struct {
    	Meta  map[string]string
    	Count map[string]uint64
    }
    
    func Parse(filename string, data []byte) (*File, error) {
    	if !bytes.HasPrefix(data, []byte(hdrPrefix)) || len(data) < pageSize {
    		if len(data) < pageSize {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 14:38:01 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  6. src/net/internal/socktest/switch.go

    // A Switch represents a callpath point switch for socket system
    // calls.
    type Switch struct {
    	once sync.Once
    
    	fmu   sync.RWMutex
    	fltab map[FilterType]Filter
    
    	smu   sync.RWMutex
    	sotab Sockets
    	stats stats
    }
    
    func (sw *Switch) init() {
    	sw.fltab = make(map[FilterType]Filter)
    	sw.sotab = make(Sockets)
    	sw.stats = make(stats)
    }
    
    // Stats returns a list of per-cookie socket statistics.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  7. test/fixedbugs/issue47185.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Another test to verify compiler and linker handling of multiple
    // competing map.zero symbol definitions.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 315 bytes
    - Viewed (0)
  8. src/cmd/go/internal/modload/search.go

    // a global) for tags, can include or exclude packages in the standard library,
    // and is restricted to the given list of modules.
    func matchPackages(ctx context.Context, m *search.Match, tags map[string]bool, filter stdFilter, modules []module.Version) {
    	ctx, span := trace.StartSpan(ctx, "modload.matchPackages")
    	defer span.Done()
    
    	m.Pkgs = []string{}
    
    	isMatch := func(string) bool { return true }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:15 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  9. src/reflect/type_test.go

    		{"struct{}", args{reflect.TypeOf(struct{}{})}, true},
    		{"struct{i int; s S}", args{reflect.TypeOf(struct {
    			i int
    			s S
    		}{})}, true},
    		{"map[int][int]", args{reflect.TypeOf(map[int]int{})}, false},
    		{"[4]chan int", args{reflect.TypeOf([4]chan int{})}, true},
    		{"[0]struct{_ S}", args{reflect.TypeOf([0]struct {
    			_ S
    		}{})}, 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)
  10. src/internal/reflectlite/reflect_mirror_test.go

    	"uncommonType",
    	"arrayType",
    	"chanType",
    	"funcType",
    	"interfaceType",
    	"ptrType",
    	"sliceType",
    	"structType",
    }
    
    type visitor struct {
    	m map[string]map[string]bool
    }
    
    func newVisitor() visitor {
    	v := visitor{}
    	v.m = make(map[string]map[string]bool)
    
    	return v
    }
    func (v visitor) filter(name string) bool {
    	for _, typeName := range typeNames {
    		if typeName == name {
    			return true
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 21:11:15 UTC 2024
    - 2.8K bytes
    - Viewed (0)
Back to top