- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 130 for DELETE (0.12 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
src/go/types/initorder.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 9.9K bytes - Viewed (0) -
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) -
src/cmd/go/internal/envcmd/env.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 17:13:51 UTC 2024 - 19.6K bytes - Viewed (0) -
src/slices/example_test.go
} func ExampleDelete() { letters := []string{"a", "b", "c", "d", "e"} letters = slices.Delete(letters, 1, 4) fmt.Println(letters) // Output: // [a e] } func ExampleDeleteFunc() { seq := []int{0, 1, 1, 2, 3, 5, 8} seq = slices.DeleteFunc(seq, func(n int) bool { return n%2 != 0 // delete the odd numbers }) fmt.Println(seq) // Output: // [0 2 8] } func ExampleEqual() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 10 17:28:50 UTC 2024 - 8.1K bytes - Viewed (0)