- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 130 for DELETE (0.08 sec)
-
src/internal/concurrent/hashtriemap.go
if n == nil { // Valid node that doesn't contain what we need. Nothing to delete. i.mu.Unlock() return } if n.isEntry { // What we saw is still true, so we can continue with the delete. break } } // We have to start over. i.mu.Unlock() } // Try to delete the entry. e, deleted := n.entry().compareAndDelete(key, old, ht.keyEqual, ht.valEqual) if !deleted {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 16:01:55 UTC 2024 - 11.8K bytes - Viewed (0) -
src/net/http/cookiejar/jar_test.go
"a=w b=xx c=y d=zz", []query{{"http://www.host.test", "a=w b=xx c=y d=zz"}}, }, { "Delete all.", "http://www.host.test/", []string{ "a=1; max-Age=-1", // delete via MaxAge "b=2; " + expiresIn(-10), // delete via Expires "c=2; max-age=-1; " + expiresIn(-10), // delete via both "d=4; max-age=-1; " + expiresIn(10)}, // MaxAge takes precedence "",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 34K bytes - Viewed (0) -
src/slices/slices.go
return s } // Delete removes the elements s[i:j] from s, returning the modified slice. // Delete panics if j > len(s) or s[i:j] is not a valid slice of s. // Delete is O(len(s)-i), so if many items must be deleted, it is better to // make a single call deleting them all together than to delete one at a time. // Delete zeroes the elements s[len(s)-(j-i):len(s)]. func Delete[S ~[]E, E any](s S, i, j int) S {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 29 14:01:59 UTC 2024 - 13.6K bytes - Viewed (0) -
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) -
src/sync/map.go
if !ok && read.amended { e, ok = m.dirty[key] delete(m.dirty, key) // Regardless of whether the entry was present, record a miss: this key // will take the slow path until the dirty map is promoted to the read // map. m.missLocked() } m.mu.Unlock() } if ok { return e.delete() } return nil, false } // Delete deletes the value for a key. func (m *Map) Delete(key any) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 21:14:51 UTC 2024 - 15.6K bytes - Viewed (0) -
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) -
src/runtime/map_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 33.5K bytes - Viewed (0) -
src/net/http/client_test.go
15: {method: "DELETE", serverStatus: 301, wantMethod: "GET"}, 16: {method: "DELETE", serverStatus: 302, wantMethod: "GET"}, 17: {method: "DELETE", serverStatus: 303, wantMethod: "GET"}, 18: {method: "DELETE", serverStatus: 307, wantMethod: "DELETE"}, 19: {method: "DELETE", serverStatus: 308, wantMethod: "DELETE"}, 20: {method: "PUT", serverStatus: 301, wantMethod: "GET"},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:30:50 UTC 2024 - 63.8K bytes - Viewed (0) -
src/expvar/expvar_test.go
} colors.Delete("red") if v := colors.Get("red"); v != nil { t.Errorf("removed red, Get should return nil; got %v", v) } n = 0 colors.Do(func(KeyValue) { n++ }) if n != 1 { t.Errorf("removed red, Do should invoke f 1 times; got %v", n) } colors.Delete("notfound") n = 0 colors.Do(func(KeyValue) { n++ }) if n != 1 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:46:19 UTC 2024 - 13.4K bytes - Viewed (0) -
src/internal/trace/oldtrace.go
} mappedType = go122.EvGoCreate case oldtrace.EvGoStart: if it.preInit { mappedType = go122.EvGoStatus mappedArgs = timedEventArgs{ev.Args[0], ^uint64(0), uint64(go122.GoRunning)} delete(it.createdPreInit, GoID(ev.Args[0])) } else { mappedType = go122.EvGoStart } case oldtrace.EvGoStartLabel: it.extra = []Event{{ ctx: schedCtx{ G: GoID(ev.G), P: ProcID(ev.P),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 17.2K bytes - Viewed (0)