Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 133 for DELETE (0.12 sec)

  1. src/internal/types/testdata/check/builtins0.go

    }
    
    func delete1() {
    	var m map[string]int
    	var s string
    	delete() // ERROR "not enough arguments"
    	delete(1) // ERROR "not enough arguments"
    	delete(1, 2, 3) // ERROR "too many arguments"
    	delete(m, 0 /* ERROR "cannot use" */)
    	delete(m, s)
    	_ = delete /* ERROR "used as value" */ (m, s)
    
    	var t []map[string]string
    	delete(t... /* ERROR "invalid use of ..." */ )
    }
    
    func delete2() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. src/cmd/compile/internal/test/inl_test.go

    			fname := m[1]
    			delete(notInlinedReason, curPkg+"."+fname)
    			continue
    		}
    		if m := canInline.FindStringSubmatch(line); m != nil {
    			fname := m[1]
    			fullname := curPkg + "." + fname
    			// If function must be inlined somewhere, being inlinable is not enough
    			if _, ok := must[fullname]; !ok {
    				delete(notInlinedReason, fullname)
    				continue
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  5. 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)
  6. src/cmd/trace/pprof.go

    				// to the same state (this is a no-ip
    				continue
    			}
    			// The goroutine has transitioned out of the state we care about,
    			// so remove it from tracking and record the stack.
    			delete(tracking, id)
    
    			overlapping := pprofOverlappingDuration(gToIntervals, id, interval{startEv.Time(), ev.Time()})
    			if overlapping > 0 {
    				rec := stacks.getOrAdd(startEv.Stack())
    				rec.Count++
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  7. 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)
  8. src/go/types/initorder.go

    				for s := range n.succ {
    					// ignore self-cycles
    					if s != n {
    						p.succ.add(s)
    						s.pred.add(p)
    					}
    				}
    				delete(p.succ, n) // remove edge to n
    			}
    		}
    		for s := range n.succ {
    			delete(s.pred, n) // remove edge to n
    		}
    	}
    
    	// fill in index and ndeps fields
    	for i, n := range G {
    		n.index = i
    		n.ndeps = len(n.succ)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  9. src/syscall/js/js.go

    //
    //go:wasmimport gojs syscall/js.valueSet
    //go:noescape
    func valueSet(v ref, p string, x ref)
    
    // Delete deletes the JavaScript property p of value v.
    // It panics if v is not a JavaScript object.
    func (v Value) Delete(p string) {
    	if vType := v.Type(); !vType.isObject() {
    		panic(&ValueError{"Value.Delete", vType})
    	}
    	valueDelete(v.ref, p)
    	runtime.KeepAlive(v)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 14:35:26 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  10. src/cmd/go/internal/envcmd/env.go

    	for key, val := range add {
    		if p, ok := prev[key]; ok {
    			lines[p] = key + "=" + val + "\n"
    			delete(add, key)
    		}
    	}
    	for key, val := range add {
    		lines = append(lines, key+"="+val+"\n")
    	}
    
    	// Delete requested variables (go env -u).
    	for key := range del {
    		if p, ok := prev[key]; ok {
    			lines[p] = ""
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 17:13:51 UTC 2024
    - 19.6K bytes
    - Viewed (0)
Back to top