Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 125 for DELETE (0.09 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. src/net/http/cookie.go

    	Domain     string    // optional
    	Expires    time.Time // optional
    	RawExpires string    // for reading cookies only
    
    	// MaxAge=0 means no 'Max-Age' attribute specified.
    	// MaxAge<0 means delete cookie now, equivalently 'Max-Age: 0'
    	// MaxAge>0 means Max-Age attribute present and given in seconds
    	MaxAge      int
    	Secure      bool
    	HttpOnly    bool
    	SameSite    SameSite
    	Partitioned bool
    	Raw         string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:33:05 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  6. src/crypto/tls/handshake_client_test.go

    	cache.Put(keys[0], nil)
    	if _, ok := cache.Get(keys[0]); ok {
    		t.Fatalf("session cache failed to delete key 0")
    	}
    
    	// Delete entry 2. LRU should keep 4 and 5
    	cache.Put(keys[2], nil)
    	if _, ok := cache.Get(keys[2]); ok {
    		t.Fatalf("session cache failed to delete key 4")
    	}
    	for i := 4; i < 6; i++ {
    		if s, ok := cache.Get(keys[i]); !ok || s != &cs[i] {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 88.7K bytes
    - Viewed (0)
  7. src/internal/trace/gc.go

    			if handleSTW(r) {
    				stw--
    			} else if handleSweep(r) {
    				ps[ev.Proc()].gc--
    			} else if handleMarkAssist(r) {
    				ps[ev.Proc()].gc--
    				if g := r.Scope.Goroutine(); g != NoGoroutine {
    					delete(inGC, g)
    				}
    			}
    		case EventStateTransition:
    			st := ev.StateTransition()
    			if st.Resource.Kind != ResourceGoroutine {
    				break
    			}
    			old, new := st.Goroutine()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 26K bytes
    - Viewed (0)
  8. src/cmd/go/internal/modfetch/fetch.go

    	}
    
    	// Extract the module zip directory at its final location.
    	//
    	// To prevent other processes from reading the directory if we crash,
    	// create a .partial file before extracting the directory, and delete
    	// the .partial file afterward (all while holding the lock).
    	//
    	// Before Go 1.16, we extracted to a temporary directory with a random name
    	// then renamed it into place with os.Rename. On Windows, this failed with
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  9. src/time/format_test.go

    	}
    
    	noParens := func(r rune) rune {
    		if r == '(' || r == ')' {
    			return -1
    		}
    		return r
    	}
    
    	for _, marked := range nextStdChunkTests {
    		// marked is an expected output from markChunks.
    		// If we delete the parens and pass it through markChunks,
    		// we should get the original back.
    		format := strings.Map(noParens, marked)
    		out := markChunks(format)
    		if out != marked {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:58:29 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  10. src/cmd/go/internal/work/gc.go

    		canDashC = false
    	case "1":
    		canDashC = true
    	case "":
    		// Not set. Use default.
    	default:
    		log.Fatalf("GO19CONCURRENTCOMPILATION must be 0, 1, or unset, got %q", e)
    	}
    
    	// TODO: Test and delete these conditions.
    	if cfg.ExperimentErr != nil || cfg.Experiment.FieldTrack || cfg.Experiment.PreemptibleLoops {
    		canDashC = false
    	}
    
    	if !canDashC {
    		return 1
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:37:44 UTC 2024
    - 23K bytes
    - Viewed (0)
Back to top