- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 329 for Map (0.02 sec)
-
src/net/http/clone.go
// //go:linkname cloneMultipartForm func cloneMultipartForm(f *multipart.Form) *multipart.Form { if f == nil { return nil } f2 := &multipart.Form{ Value: (map[string][]string)(Header(f.Value).Clone()), } if f.File != nil { m := make(map[string][]*multipart.FileHeader) for k, vv := range f.File { vv2 := make([]*multipart.FileHeader, len(vv)) for i, v := range vv { vv2[i] = cloneMultipartFileHeader(v)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:17:26 UTC 2024 - 3K bytes - Viewed (0) -
src/internal/coverage/cformat/format.go
) type Formatter struct { // Maps import path to package state. pm map[string]*pstate // Records current package being visited. pkg string // Pointer to current package state. p *pstate // Counter mode. cm coverage.CounterMode } // pstate records package-level coverage data state: // - a table of functions (file/fname/literal) // - a map recording the index/ID of each func encountered so far
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 9.7K bytes - Viewed (0) -
src/testing/slogtest/run_test.go
) func TestRun(t *testing.T) { var buf bytes.Buffer newHandler := func(*testing.T) slog.Handler { buf.Reset() return slog.NewJSONHandler(&buf, nil) } result := func(t *testing.T) map[string]any { m := map[string]any{} if err := json.Unmarshal(buf.Bytes(), &m); err != nil { t.Fatal(err) } return m } slogtest.Run(t, newHandler, result)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 20:37:12 UTC 2023 - 623 bytes - Viewed (0) -
src/cmd/compile/internal/ssa/numberlines.go
// -d=ssa/number_lines/debug for information about why particular values are marked as statements. func numberLines(f *Func) { po := f.Postorder() endlines := make(map[ID]src.XPos) ranges := make(map[int]lineRange) note := func(p src.XPos) { line := uint32(p.Line()) i := int(p.FileIndex()) lp, found := ranges[i] change := false if line < lp.first || !found { lp.first = line
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 14 21:26:13 UTC 2023 - 7.8K bytes - Viewed (0) -
src/cmd/internal/dwarf/putvarabbrevgen_test.go
var fset token.FileSet f, err := parser.ParseFile(&fset, "./dwarf.go", nil, parser.ParseComments) if err != nil { t.Fatal(err) } cm := ast.NewCommentMap(&fset, f, f.Comments) abbrevs := make(map[string]int) funcs := map[string]ast.Stmt{} for _, decl := range f.Decls { decl, ok := decl.(*ast.FuncDecl) if !ok || decl.Body == nil { continue } if decl.Name.Name == "putvar" || decl.Name.Name == "putAbstractVar" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 20:45:07 UTC 2024 - 8.9K bytes - Viewed (0) -
src/reflect/iter_test.go
// license that can be found in the LICENSE file. package reflect_test import ( "iter" "maps" . "reflect" "testing" ) func TestValueSeq(t *testing.T) { m := map[string]int{ "1": 1, "2": 2, "3": 3, "4": 4, } c := make(chan int, 3) for i := range 3 { c <- i } close(c) tests := []struct { name string val Value
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 10 14:27:54 UTC 2024 - 6.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/types.go
} m := &argMatcher{t: t, seen: make(map[types.Type]bool)} ok = m.match(typ, true) return m.reason, ok } // argMatcher recursively matches types against the printfArgType t. // // To short-circuit recursion, it keeps track of types that have already been // matched (or are in the process of being matched) via the seen map. Recursion // arises from the compound types {map,chan,slice} which may be printed with %d
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 8.6K bytes - Viewed (0) -
src/cmd/internal/objabi/pkgspecial.go
} var ( pkgSpecials map[string]PkgSpecial pkgSpecialsOnce sync.Once ) // LookupPkgSpecial returns special build properties for the given package path. func LookupPkgSpecial(pkgPath string) PkgSpecial { pkgSpecialsOnce.Do(func() { // Construct pkgSpecials from various package lists. This lets us use // more flexible logic, while keeping the final map simple, and avoids // the init-time cost of a map.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 02:32:19 UTC 2024 - 3.8K bytes - Viewed (0) -
src/net/hosts.go
// FQDN. // For now the key is converted to lower case for convenience. byName map[string]byName // Key for the list of host names must be a literal IP address // including IPv6 address with zone identifier. // We don't support old-classful IP address notation. byAddr map[string][]string expire time.Time path string mtime time.Time size int64 } func readHosts() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 04 07:21:38 UTC 2023 - 3.5K bytes - Viewed (0) -
src/internal/trace/event/event.go
"stack", // stack ID "value", // uint64 "task", // trace.TaskID } // Names is a helper that produces a mapping of event names to event types. func Names(specs []Spec) map[string]Type { nameToType := make(map[string]Type) for i, spec := range specs { nameToType[spec.Name] = Type(byte(i)) } return nameToType } // Experiment is an experiment ID that events may be associated with.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 3.4K bytes - Viewed (0)