Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for DELETE (0.07 sec)

  1. src/expvar/expvar.go

    	if iv, ok := i.(*Float); ok {
    		iv.Add(delta)
    	}
    }
    
    // Delete deletes the given key from the map.
    func (v *Map) Delete(key string) {
    	v.keysMu.Lock()
    	defer v.keysMu.Unlock()
    	i, found := slices.BinarySearch(v.keys, key)
    	if found {
    		v.keys = slices.Delete(v.keys, i, i+1)
    		v.m.Delete(key)
    	}
    }
    
    // Do calls f for each entry in the map.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 21:32:11 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  2. src/go/types/resolver_test.go

    		ast.Inspect(f, func(n ast.Node) bool {
    			if x, ok := n.(*ast.Ident); ok {
    				var objects int
    				if _, found := uses[x]; found {
    					objects |= 1
    					delete(uses, x)
    				}
    				if _, found := defs[x]; found {
    					objects |= 2
    					delete(defs, x)
    				}
    				if objects == 0 {
    					t.Errorf("%s: unresolved identifier %s", fset.Position(x.Pos()), x.Name)
    				} else if objects == 3 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  3. src/go/printer/gobuild.go

    				block = append(block, tabwriter.Escape)
    				block = append(block, line...)
    				block = append(block, tabwriter.Escape, '\n')
    			}
    		}
    	}
    	block = append(block, '\n')
    
    	// Build sorted list of lines to delete from remainder of output.
    	toDelete := append(p.goBuild, p.plusBuild...)
    	slices.Sort(toDelete)
    
    	// Collect output after insertion point, with lines deleted, into after.
    	var after []byte
    	start := insert
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  4. src/net/netip/inlining_test.go

    			"Addr.AsSlice",
    			"Addr.Next",
    			"Addr.Prev",
    		)
    	}
    
    	for _, want := range wantInlinable {
    		if !got[want] {
    			t.Errorf("%q is no longer inlinable", want)
    			continue
    		}
    		delete(got, want)
    	}
    	for sym := range got {
    		if strings.Contains(sym, ".func") {
    			continue
    		}
    		t.Logf("not in expected set, but also inlinable: %q", sym)
    
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 2K bytes
    - Viewed (0)
  5. src/reflect/iter_test.go

    			i := int64(0)
    			copy := maps.Clone(m)
    			for v := range s {
    				if _, ok := copy[v.String()]; !ok {
    					t.Fatalf("unexpected %v", v.Interface())
    				}
    				delete(copy, v.String())
    				i++
    			}
    			if len(copy) != 0 {
    				t.Fatalf("should loop four times")
    			}
    		}},
    		{"chan int", ValueOf(c), func(t *testing.T, s iter.Seq[Value]) {
    			i := 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 14:27:54 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  6. src/cmd/go/internal/cache/default.go

    // README as a courtesy to explain where it came from.
    const cacheREADME = `This directory holds cached build artifacts from the Go build system.
    Run "go clean -cache" if the directory is getting too large.
    Run "go clean -fuzzcache" to delete the fuzz cache.
    See golang.org to learn more about Go.
    `
    
    // initDefaultCache does the work of finding the default cache
    // the first time Default is called.
    func initDefaultCache() {
    	dir, _ := DefaultDir()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 3K bytes
    - Viewed (0)
  7. src/cmd/trace/procgen.go

    		g.inSyscall[ev.Proc()] = gs
    	}
    	// Check if we're exiting a non-blocking syscall.
    	_, didNotBlock := g.inSyscall[ev.Proc()]
    	if from == trace.GoSyscall && didNotBlock {
    		gs.syscallEnd(ev.Time(), false, ctx)
    		delete(g.inSyscall, ev.Proc())
    	}
    
    	// Note down the goroutine transition.
    	_, inMarkAssist := gs.activeRanges["GC mark assist"]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  8. src/runtime/testdata/testprogcgo/coro.go

    		CoroCgo(callerStopCallback, iterNested)
    	})
    }
    
    var toCall func()
    
    //export go_callback_coro
    func go_callback_coro(handle C.uintptr_t) {
    	h := cgo.Handle(handle)
    	h.Value().(func())()
    	h.Delete()
    }
    
    func callFromC(f func()) {
    	C.call_go(C.uintptr_t(cgo.NewHandle(f)))
    }
    
    func CoroCgo(driver func(iter.Seq[int]) error, seq iter.Seq[int]) {
    	if err := driver(seq); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 19:46:10 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  9. src/internal/poll/splice_linux_test.go

    	const N = 64
    	var (
    		p          *poll.SplicePipe
    		ps         []*poll.SplicePipe
    		allFDs     []int
    		pendingFDs sync.Map // fd → struct{}{}
    		err        error
    	)
    
    	closeHook.Store(func(fd int) { pendingFDs.Delete(fd) })
    	t.Cleanup(func() { closeHook.Store((func(int))(nil)) })
    
    	for i := 0; i < N; i++ {
    		p, err = poll.GetPipe()
    		if err != nil {
    			t.Skipf("failed to create pipe due to error(%v), skip this test", err)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:49:26 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/buildtag/buildtag_old.go

    // Copyright 2013 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // TODO(rsc): Delete this file once Go 1.17 comes out and we can retire Go 1.15 support.
    
    //go:build !go1.16
    // +build !go1.16
    
    // Package buildtag defines an Analyzer that checks build tags.
    package buildtag
    
    import (
    	"bytes"
    	"fmt"
    	"go/ast"
    	"go/parser"
    	"strings"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top