Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 329 for Map (0.03 sec)

  1. src/go/types/resolver_test.go

    		files = append(files, mustParse(fset, src))
    	}
    
    	// resolve and type-check package AST
    	importer := new(resolveTestImporter)
    	conf := Config{Importer: importer}
    	uses := make(map[*ast.Ident]Object)
    	defs := make(map[*ast.Ident]Object)
    	_, err := conf.Check("testResolveIdents", fset, files, &Info{Defs: defs, Uses: uses})
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// check that all packages were imported
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  2. src/debug/dwarf/open.go

    	// New sections added in DWARF 5.
    	addr       []byte
    	lineStr    []byte
    	strOffsets []byte
    	rngLists   []byte
    
    	// parsed data
    	abbrevCache map[uint64]abbrevTable
    	bigEndian   bool
    	order       binary.ByteOrder
    	typeCache   map[Offset]Type
    	typeSigs    map[uint64]*typeUnit
    	unit        []unit
    }
    
    var errSegmentSelector = errors.New("non-zero segment_selector size not supported")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/reflectdata/helpers.go

    // map type.
    func DeleteMapRType(pos src.XPos, n *ir.CallExpr) ir.Node {
    	assertOp(n, ir.ODELETE)
    	if hasRType(n, n.RType, "RType") {
    		return n.RType
    	}
    	return mapRType(pos, n.Args[0].Type())
    }
    
    // IndexMapRType asserts that n is a map index operation, and returns
    // an expression that yields the *runtime._type value representing the
    // map type.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 04:50:32 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  4. src/sync/map_reference_test.go

    }
    
    func (m *DeepCopyMap) Range(f func(key, value any) (shouldContinue bool)) {
    	clean, _ := m.clean.Load().(map[any]any)
    	for k, v := range clean {
    		if !f(k, v) {
    			break
    		}
    	}
    }
    
    func (m *DeepCopyMap) dirty() map[any]any {
    	clean, _ := m.clean.Load().(map[any]any)
    	dirty := make(map[any]any, len(clean)+1)
    	for k, v := range clean {
    		dirty[k] = v
    	}
    	return dirty
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 01 15:34:22 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  5. src/cmd/internal/pgo/pgo.go

    	CalleeName     string
    	CallSiteOffset int // Line offset from function start line.
    }
    
    // NamedEdgeMap contains all unique call edges in the profile and their
    // edge weight.
    type NamedEdgeMap struct {
    	Weight map[NamedCallEdge]int64
    
    	// ByWeight lists all keys in Weight, sorted by edge weight from
    	// highest to lowest.
    	ByWeight []NamedCallEdge
    }
    
    func emptyProfile() *Profile {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:20:01 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  6. src/os/signal/signal.go

    import (
    	"context"
    	"os"
    	"sync"
    )
    
    var handlers struct {
    	sync.Mutex
    	// Map a channel to the signals that should be sent to it.
    	m map[chan<- os.Signal]*handler
    	// Map a signal to the number of channels receiving it.
    	ref [numSig]int64
    	// Map channels to signals while the channel is being stopped.
    	// Not a map because entries live here only very briefly.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  7. src/mime/multipart/formdata.go

    	multipartmaxparts = godebug.New("multipartmaxparts")
    )
    
    func (r *Reader) readForm(maxMemory int64) (_ *Form, err error) {
    	form := &Form{make(map[string][]string), make(map[string][]*FileHeader)}
    	var (
    		file    *os.File
    		fileOff int64
    	)
    	numDiskFiles := 0
    	combineFiles := true
    	if multipartfiles.Value() == "distinct" {
    		combineFiles = false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 16:12:35 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  8. src/go/token/token.go

    	ELSE:        "else",
    	FALLTHROUGH: "fallthrough",
    	FOR:         "for",
    
    	FUNC:   "func",
    	GO:     "go",
    	GOTO:   "goto",
    	IF:     "if",
    	IMPORT: "import",
    
    	INTERFACE: "interface",
    	MAP:       "map",
    	PACKAGE:   "package",
    	RANGE:     "range",
    	RETURN:    "return",
    
    	SELECT: "select",
    	STRUCT: "struct",
    	SWITCH: "switch",
    	TYPE:   "type",
    	VAR:    "var",
    
    	TILDE: "~",
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  9. src/cmd/go/internal/par/work.go

    )
    
    // Work manages a set of work items to be executed in parallel, at most once each.
    // The items in the set must all be valid map keys.
    type Work[T comparable] struct {
    	f       func(T) // function to run for each item
    	running int     // total number of runners
    
    	mu      sync.Mutex
    	added   map[T]bool // items added to set
    	todo    []T        // items yet to be run
    	wait    sync.Cond  // wait when todo is empty
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 15:54:54 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  10. src/net/textproto/header.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package textproto
    
    // A MIMEHeader represents a MIME-style header mapping
    // keys to sets of values.
    type MIMEHeader map[string][]string
    
    // Add adds the key, value pair to the header.
    // It appends to any existing values associated with key.
    func (h MIMEHeader) Add(key, value string) {
    	key = CanonicalMIMEHeaderKey(key)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 1.7K bytes
    - Viewed (0)
Back to top