- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 187 for DELETE (0.11 sec)
-
src/cmd/go/internal/fsys/fsys.go
if from == "" { return fmt.Errorf("empty string key in overlay file Replace map") } cfrom := canonicalize(from) if to != "" { // Don't canonicalize "", meaning to delete a file, because then it will turn into ".". to = canonicalize(to) } if otherFrom, seen := reverseCanonicalized[cfrom]; seen { return fmt.Errorf(
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 18:35:34 UTC 2024 - 22.7K bytes - Viewed (0) -
src/net/http/response_test.go
Response{ Status: "200 OK", StatusCode: 200, Proto: "HTTP/1.0", ProtoMajor: 1, ProtoMinor: 0, Request: dummyReq("GET"), Header: Header{ "Connection": {"close"}, // TODO(rsc): Delete? }, Close: true, ContentLength: -1, }, "Body here\n", }, // Unchunked HTTP/1.1 response without Content-Length or // Connection headers. { "HTTP/1.1 200 OK\r\n" +
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 19:01:29 UTC 2024 - 23.6K bytes - Viewed (0) -
src/cmd/go/internal/work/shell.go
return fmt.Errorf("copying %s to %s: %v", src, dst, err) } return nil } // mayberemovefile removes a file only if it is a regular file // When running as a user with sufficient privileges, we may delete // even device files, for example, which is not intended. func mayberemovefile(s string) { if fi, err := os.Lstat(s); err == nil && !fi.Mode().IsRegular() { return } os.Remove(s) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 19.8K bytes - Viewed (0) -
src/database/sql/sql_test.go
} reset := func() { s = connRequestSet{} } t.Run("add-delete", func(t *testing.T) { reset() wantLen(0) dh := s.Add(nil) wantLen(1) if !s.Delete(dh) { t.Fatal("failed to delete") } wantLen(0) if s.Delete(dh) { t.Error("delete worked twice") } wantLen(0) }) t.Run("take-before-delete", func(t *testing.T) { reset() ch1 := make(chan connRequest)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 111.6K bytes - Viewed (0) -
src/internal/syscall/windows/registry/registry_test.go
t.Errorf("value %s is not found while enumerating", test.Name) } if haveFound && !wantFound { t.Errorf("value %s is found while enumerating, but expected to fail", test.Name) } if haveFound { delete(haveNames, test.Name) } } for n, v := range haveNames { t.Errorf("value %s (%v) is found while enumerating, but has not been created", n, v) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 06 19:19:00 UTC 2024 - 18.5K bytes - Viewed (0) -
src/cmd/compile/internal/inline/inlheur/scoring.go
if allCallSites == nil { allCallSites = make(CallSiteTab) } for call, cs := range callSiteTab { allCallSites[call] = cs } } for k := range scoreCallsCache.tab { delete(scoreCallsCache.tab, k) } } // GetCallSiteScore returns the previously calculated score for call // within fn. func GetCallSiteScore(fn *ir.Func, call *ir.CallExpr) (int, bool) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 27 20:42:52 UTC 2024 - 24.2K bytes - Viewed (0) -
src/context/context.go
if s, ok := parent.(stopCtx); ok { s.stop() return } p, ok := parentCancelCtx(parent) if !ok { return } p.mu.Lock() if p.children != nil { delete(p.children, child) } p.mu.Unlock() } // A canceler is a context type that can be canceled directly. The // implementations are *cancelCtx and *timerCtx. type canceler interface {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 23.7K bytes - Viewed (0) -
src/runtime/time.go
func (ts *timers) unlock() { // Update atomic copy of len(ts.heap). // We only update at unlock so that the len is always // the most recent unlocked length, not an ephemeral length. // This matters if we lock ts, delete the only timer from the heap, // add it back, and unlock. We want ts.len.Load to return 1 the // entire time, never 0. This is important for pidleput deciding // whether ts is empty. ts.len.Store(uint32(len(ts.heap)))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 29 14:36:24 UTC 2024 - 37.5K bytes - Viewed (0) -
src/go/types/infer.go
w.inferred[i] = nil } } // If we don't have one of our type parameters, the cycle is due // to an ordinary recursive type and we can just stop walking it. return } w.seen[typ] = true defer delete(w.seen, typ) switch t := typ.(type) { case *Basic: // nothing to do // *Alias: // This case should not occur because of Unalias(typ) at the top. case *Array: w.typ(t.elem)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 13:54:20 UTC 2024 - 26.5K bytes - Viewed (0) -
src/cmd/compile/internal/types2/infer.go
w.inferred[i] = nil } } // If we don't have one of our type parameters, the cycle is due // to an ordinary recursive type and we can just stop walking it. return } w.seen[typ] = true defer delete(w.seen, typ) switch t := typ.(type) { case *Basic: // nothing to do // *Alias: // This case should not occur because of Unalias(typ) at the top. case *Array: w.typ(t.elem)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 13:54:20 UTC 2024 - 26.4K bytes - Viewed (0)