Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. 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)
  2. src/internal/types/testdata/fixedbugs/issue66878.go

    package p
    
    func _[T bool](ch chan T) {
    	var _, _ T = <-ch
    }
    
    // offending code snippets from issue
    
    func _[T ~bool](ch <-chan T) {
    	var x, ok T = <-ch
    	println(x, ok)
    }
    
    func _[T ~bool](m map[int]T) {
    	var x, ok T = m[0]
    	println(x, ok)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 17:42:47 UTC 2024
    - 399 bytes
    - Viewed (0)
  3. src/runtime/mpagealloc_64bit.go

    	need := makeAddrRange(chunksBase+needMin*scSize, chunksBase+needMax*scSize)
    
    	// Subtract any overlap from rounding. We can't re-map memory because
    	// it'll be zeroed.
    	need = need.subtract(have)
    
    	// If we've got something to map, map it, and update the slice bounds.
    	if need.size() != 0 {
    		sysMap(unsafe.Pointer(need.base.addr()), need.size(), sysStat)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 03 11:00:10 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/test_fuzz_minimize_dirty_cov.txt

    # is unable to actually minimize the input. We do this by checking that
    # an expected value appears in the cache. If a dirty coverage map is used
    # (i.e. the coverage map generated during the last minimization step,
    # rather than the map provided with the initial input) then this value
    # is unlikely to appear in the cache, since the map generated during
    # the last minimization step should not increase the coverage.
    
    [short] skip
    [!fuzz-instrumented] skip
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 27 01:16:19 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  5. src/go/types/methodset.go

    	// We must use a lookup on identity rather than a simple map[*Named]bool as
    	// instantiated types may be identical but not equal.
    	var seen instanceLookup
    
    	// collect methods at current depth
    	for len(current) > 0 {
    		var next []embeddedType // embedded types found at current depth
    
    		// field and method sets at current depth, indexed by names (Id's), and allocated lazily
    		var fset map[string]bool // we only care about the field names
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  6. src/internal/trace/reader.go

    			go121Events: convertOldFormat(tr),
    		}, nil
    	case version.Go122, version.Go123:
    		return &Reader{
    			r: br,
    			order: ordering{
    				mStates:     make(map[ThreadID]*mState),
    				pStates:     make(map[ProcID]*pState),
    				gStates:     make(map[GoID]*gState),
    				activeTasks: make(map[TaskID]taskState),
    			},
    			// Don't emit a sync event when we first go to emit events.
    			emittedSync: true,
    		}, nil
    	default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  7. test/linknameasm.dir/x.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test that a linkname applied on an assembly declaration
    // does not affect stack map generation.
    
    package main
    
    import (
    	"runtime"
    	_ "unsafe"
    )
    
    //go:linkname asm
    func asm(*int)
    
    func main() {
    	x := new(int)
    	asm(x)
    }
    
    // called from asm
    func callback() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 15:22:22 UTC 2024
    - 451 bytes
    - Viewed (0)
  8. src/cmd/fix/main.go

    		os.Exit(exitCode)
    	}
    
    	sort.Sort(byDate(fixes))
    
    	if *allowedRewrites != "" {
    		allowed = make(map[string]bool)
    		for _, f := range strings.Split(*allowedRewrites, ",") {
    			allowed[f] = true
    		}
    	}
    
    	if *forceRewrites != "" {
    		force = make(map[string]bool)
    		for _, f := range strings.Split(*forceRewrites, ",") {
    			force[f] = true
    		}
    	}
    
    	if flag.NArg() == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unusedresult/unusedresult.go

    	false)
    
    type stringSetFlag map[string]bool
    
    func (ss *stringSetFlag) String() string {
    	var items []string
    	for item := range *ss {
    		items = append(items, item)
    	}
    	sort.Strings(items)
    	return strings.Join(items, ",")
    }
    
    func (ss *stringSetFlag) Set(s string) error {
    	m := make(map[string]bool) // clobber previous value
    	if s != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/assign/assign.go

    					},
    				})
    			}
    		}
    	})
    
    	return nil, nil
    }
    
    // isMapIndex returns true if e is a map index expression.
    func isMapIndex(info *types.Info, e ast.Expr) bool {
    	if idx, ok := astutil.Unparen(e).(*ast.IndexExpr); ok {
    		if typ := info.Types[idx.X].Type; typ != nil {
    			_, ok := typ.Underlying().(*types.Map)
    			return ok
    		}
    	}
    	return false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 2.4K bytes
    - Viewed (0)
Back to top