- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 200 for Map (0.04 sec)
-
src/internal/coverage/encodecounter/encode.go
// previously supplied to NewCoverageDataWriter. Returns an error // if something went wrong somewhere with the write. func (cfw *CoverageDataWriter) Write(metaFileHash [16]byte, args map[string]string, visitor CounterVisitor) error { if err := cfw.writeHeader(metaFileHash); err != nil { return err } return cfw.AppendSegment(args, visitor) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 7.8K bytes - Viewed (0) -
src/go/ast/scope.go
// // Deprecated: use the type checker [go/types] instead; see [Object]. type Scope struct { Outer *Scope Objects map[string]*Object } // NewScope creates a new scope nested in the outer scope. func NewScope(outer *Scope) *Scope { const n = 4 // initial scope capacity return &Scope{outer, make(map[string]*Object, n)} } // Lookup returns the object with the given name if it is
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 28 21:32:41 UTC 2024 - 4.6K bytes - Viewed (0) -
src/mime/mediatype.go
err = checkMediaTypeDisposition(mediatype) if err != nil { return "", nil, err } params = make(map[string]string) // Map of base parameter name -> parameter name -> value // for parameters containing a '*' character. // Lazily initialized. var continuation map[string]map[string]string v = v[len(base):] for len(v) > 0 { v = strings.TrimLeftFunc(v, unicode.IsSpace) if len(v) == 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 9.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/typeparams/free.go
// NOTE: Adapted from go/types/infer.go. If it is later exported, factor. type Free struct { seen map[types.Type]bool } // Has reports whether the specified type has a free type parameter. func (w *Free) Has(typ types.Type) (res bool) { // detect cycles if x, ok := w.seen[typ]; ok { return x } if w.seen == nil { w.seen = make(map[types.Type]bool) } w.seen[typ] = false defer func() { w.seen[typ] = res }()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 2.7K bytes - Viewed (0) -
src/cmd/go/scriptconds_test.go
"errors" "fmt" "internal/buildcfg" "internal/platform" "internal/testenv" "os" "os/exec" "path/filepath" "runtime" "runtime/debug" "strings" "sync" ) func scriptConditions() map[string]script.Cond { conds := scripttest.DefaultConds() add := func(name string, cond script.Cond) { if _, ok := conds[name]; ok { panic(fmt.Sprintf("condition %q is already registered", name)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 22:16:54 UTC 2024 - 7.4K bytes - Viewed (0) -
src/cmd/go/internal/str/str.go
} // FoldDup reports a pair of strings from the list that are // equal according to strings.EqualFold. // It returns "", "" if there are no such strings. func FoldDup(list []string) (string, string) { clash := map[string]string{} for _, s := range list { fold := ToFold(s) if t := clash[fold]; t != "" { if s > t { s, t = t, s } return s, t } clash[fold] = s } return "", "" }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 23 20:08:07 UTC 2024 - 2.3K bytes - Viewed (0) -
src/net/http/header.go
// If exclude is not nil, keys where exclude[key] == true are not written. // Keys are not canonicalized before checking the exclude map. func (h Header) WriteSubset(w io.Writer, exclude map[string]bool) error { return h.writeSubset(w, exclude, nil) } func (h Header) writeSubset(w io.Writer, exclude map[string]bool, trace *httptrace.ClientTrace) error { ws, ok := w.(io.StringWriter) if !ok { ws = stringWriter{w} }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 22:14:00 UTC 2024 - 7.6K bytes - Viewed (0) -
src/go/types/labels.go
type block struct { parent *block // enclosing block lstmt *ast.LabeledStmt // labeled statement to which this block belongs, or nil labels map[string]*ast.LabeledStmt // allocated lazily } // insert records a new label declaration for the current block. // The label must not have been declared before in any block. func (b *block) insert(s *ast.LabeledStmt) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 7.2K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/internal/report/stacks.go
s.assignColors() return *s } func (s *StackSet) makeInitialStacks(rpt *Report) { type key struct { line profile.Line inlined bool } srcs := map[key]int{} // Sources identified so far. seenFunctions := map[string]bool{} unknownIndex := 1 getSrc := func(line profile.Line, inlined bool) int { k := key{line, inlined} if i, ok := srcs[k]; ok { return i }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 16 15:19:53 UTC 2024 - 5.6K bytes - Viewed (0) -
test/typeparam/typelist.go
f() go f() } // Same, but function has a parameter and return value. func _[T interface{ ~func(string) int }](f T) int { return f("hello") } // Map access of a generic type which has a map as core type. func _[V any, T interface{ ~map[string]V }](p T) V { return p["test"] } // Testing partial and full type inference, including the case where the types can
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 09:04:48 UTC 2024 - 3.1K bytes - Viewed (0)