- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 133 for DELETE (0.18 sec)
-
src/cmd/vendor/golang.org/x/tools/go/types/typeutil/map.go
// If SetHasher is not called, the Map will create a private hasher at // the first call to Insert. func (m *Map) SetHasher(hasher Hasher) { m.hasher = hasher } // Delete removes the entry with the given key, if any. // It returns true if the entry was found. func (m *Map) Delete(key types.Type) bool { if m != nil && m.table != nil { hash := m.hasher.Hash(key) bucket := m.table[hash] for i, e := range bucket {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 13.9K bytes - Viewed (0) -
src/syscall/js/js_test.go
dummys.Get("zero").Set("badField", 42) }) } func TestDelete(t *testing.T) { dummys.Set("test", 42) dummys.Delete("test") if dummys.Call("hasOwnProperty", "test").Bool() { t.Errorf("property still exists") } expectValueError(t, func() { dummys.Get("zero").Delete("badField") }) } func TestIndex(t *testing.T) { if got := dummys.Get("someArray").Index(1).Int(); got != 42 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 19 14:35:26 UTC 2024 - 17.7K bytes - Viewed (0) -
src/cmd/link/internal/loader/loader.go
// (see AttrCgoExportDynamic). func (l *Loader) SetAttrCgoExportDynamic(i Sym, v bool) { if v { l.attrCgoExportDynamic[i] = struct{}{} } else { delete(l.attrCgoExportDynamic, i) } } // ForAllCgoExportDynamic calls f for every symbol that has been // marked with the "cgo_export_dynamic" compiler directive.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 20:26:10 UTC 2024 - 81.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/mod/modfile/rule.go
} // Update or delete the existing Require entries to preserve // only the first for each module path in req. for _, r := range f.Require { e, ok := need[r.Mod.Path] if ok { r.setVersion(e.version) r.setIndirect(e.indirect) } else { r.markRemoved() } delete(need, r.Mod.Path) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 18:34:56 UTC 2024 - 46.5K bytes - Viewed (0) -
src/time/sleep.go
// a fully tested async runtime implementation (asynctimerchan=2) // and can make this function always return c. // // If we decide to keep the sync channels, we can delete all the // handling of asynctimerchan in the runtime and keep just this // function to handle asynctimerchan=1. return *(*unsafe.Pointer)(unsafe.Pointer(&c)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:21:30 UTC 2024 - 8.5K bytes - Viewed (0) -
src/net/http/transport.go
break } } if q.len() == 0 { delete(t.connsPerHostWait, key) } else { // q is a value (like a slice), so we have to store // the updated q back into the map. t.connsPerHostWait[key] = q } if done { return } } // Otherwise, decrement the recorded count. if n--; n == 0 { delete(t.connsPerHost, key) } else { t.connsPerHost[key] = n
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 21:59:21 UTC 2024 - 91K bytes - Viewed (0) -
src/testing/fstest/mapfs.go
// then the directory is treated as not existing. if file == nil && list == nil && len(need) == 0 { return nil, &fs.PathError{Op: "open", Path: name, Err: fs.ErrNotExist} } } for _, fi := range list { delete(need, fi.name) } for name := range need { list = append(list, mapFileInfo{name, &MapFile{Mode: fs.ModeDir | 0555}}) } slices.SortFunc(list, func(a, b mapFileInfo) int { return strings.Compare(a.name, b.name)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 7.1K bytes - Viewed (0) -
src/crypto/tls/bogo_shim_test.go
t.Fatal(result.Error) } if expectedResult, ok := assertResults[name]; ok && expectedResult != result.Actual { t.Fatalf("unexpected result: got %s, want %s", result.Actual, assertResults[name]) } delete(assertResults, name) if result.Actual == "SKIP" { t.Skip() } }) } if *bogoFilter == "" { // Anything still in assertResults did not show up in the results, so we should fail
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 17:25:39 UTC 2024 - 12.6K bytes - Viewed (0) -
src/cmd/trace/gstate.go
gs.completedRanges = append(gs.completedRanges, completedRange{ name: name, startTime: r.time, endTime: ts, startStack: r.stack, endStack: stack, }) } delete(gs.activeRanges, name) } func lastFunc(s trace.Stack) string { var last trace.StackFrame s.Frames(func(f trace.StackFrame) bool { last = f return true }) return last.Func
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 11.9K bytes - Viewed (0) -
src/net/http/httptest/server.go
} case http.StateHijacked, http.StateClosed: // Remove c from the set of tracked conns and decrement it from the // waitgroup, unless it was previously removed. if _, ok := s.conns[c]; ok { delete(s.conns, c) // Keep Close from returning until the user's ConnState hook // (if any) finishes. defer s.wg.Done() } } if oldHook != nil { oldHook(c, cs) } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 10 17:26:10 UTC 2024 - 10.7K bytes - Viewed (0)