- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 343 for Map (0.02 sec)
-
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) -
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) -
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) -
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) -
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) -
src/cmd/compile/internal/syntax/testdata/issue23434.go
package p type T /* ERROR unexpected newline */ type Map map[int] /* ERROR unexpected newline */ // Examples from go.dev/issue/23434: func g() { m := make(map[string] /* ERROR unexpected ! */ !) for { x := 1 print(x) } } func f() { m := make(map[string] /* ERROR unexpected \) */ ) for { x := 1 print(x) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 01 12:49:49 UTC 2023 - 653 bytes - Viewed (0) -
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) -
src/cmd/go/internal/modload/vendor.go
vendorReplaced []module.Version // all replaced modules; may or may not also contribute packages vendorVersion map[string]string // module path → selected version (if known) vendorPkgModule map[string]module.Version // package → containing module vendorMeta map[module.Version]vendorMetadata ) type vendorMetadata struct { Explicit bool Replacement module.Version GoVersion string }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jul 24 18:09:22 UTC 2023 - 9.5K bytes - Viewed (0) -
test/fixedbugs/issue65957.dir/main.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import ( "./a" "reflect" ) var s = []rune{0, 1, 2, 3} func main() { m := map[any]int{} k := reflect.New(reflect.ArrayOf(4, reflect.TypeOf(int32(0)))).Elem().Interface() m[k] = 1 a.F()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 28 05:32:14 UTC 2024 - 368 bytes - Viewed (0) -
test/fixedbugs/issue13799.go
} } func test1(iter int) { const maxI = 500 m := make(map[int][]int) // ERROR "make\(map\[int\]\[\]int\) escapes to heap$" // The panic seems to be triggered when m is modified inside a // closure that is both recursively called and reassigned to in a // loop. // Cause of bug -- escape of closure failed to escape (shared) data structures // of map. Assign to fn declared outside of loop triggers escape of closure.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 18:50:24 UTC 2023 - 4.9K bytes - Viewed (0)