Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 187 for DELETE (0.1 sec)

  1. src/go/doc/reader.go

    		f := pkg.Files[filename]
    		if mode&AllDecls == 0 {
    			r.fileExports(f)
    		}
    		r.readFile(f)
    	}
    
    	for name, path := range r.importByName {
    		if path == "" {
    			delete(r.importByName, name)
    		}
    	}
    
    	// process functions now that we have better type information
    	for _, f := range pkg.Files {
    		for _, decl := range f.Decls {
    			if d, ok := decl.(*ast.FuncDecl); ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 27.5K bytes
    - Viewed (0)
  2. src/unique/handle.go

    	}
    	a, loaded := uniqueMaps.LoadOrStore(typ, m)
    	if !loaded {
    		// Add a cleanup function for the new map.
    		cleanupFuncsMu.Lock()
    		cleanupFuncs = append(cleanupFuncs, func() {
    			// Delete all the entries whose weak references are nil and clean up
    			// deleted entries.
    			m.All()(func(key T, wp weak.Pointer[T]) bool {
    				if wp.Strong() == nil {
    					m.CompareAndDelete(key, wp)
    				}
    				return true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 16:01:55 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  3. src/database/sql/sql.go

    	if !ok {
    		panic(fmt.Sprintf("unpaired removeDep: no deps for %T", x))
    	}
    
    	l0 := len(xdep)
    	delete(xdep, dep)
    
    	switch len(xdep) {
    	case l0:
    		// Nothing removed. Shouldn't happen.
    		panic(fmt.Sprintf("unpaired removeDep: no %T dep on %T", dep, x))
    	case 0:
    		// No more dependencies.
    		delete(db.dep, x)
    		return x.finalClose
    	default:
    		// Dependencies remain.
    		return func() error { return nil }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 103.6K bytes
    - Viewed (0)
  4. src/sync/atomic/atomic_test.go

    func init() {
    	var v uint64 = 1 << 50
    	if uintptr(v) != 0 {
    		// 64-bit system; clear uintptr tests
    		delete(hammer32, "SwapUintptr")
    		delete(hammer32, "AddUintptr")
    		delete(hammer32, "CompareAndSwapUintptr")
    		delete(hammer32, "SwapUintptrMethod")
    		delete(hammer32, "AddUintptrMethod")
    		delete(hammer32, "CompareAndSwapUintptrMethod")
    	}
    }
    
    func hammerSwapInt32(uaddr *uint32, count int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 71.4K bytes
    - Viewed (0)
  5. src/cmd/go/internal/load/godebug.go

    			k, v, err := ParseGoDebug(d.Text)
    			if err != nil {
    				continue
    			}
    			if m == nil {
    				m = make(map[string]string)
    			}
    			m[k] = v
    		}
    	}
    	if v, ok := m["default"]; ok {
    		delete(m, "default")
    		v = strings.TrimPrefix(v, "go")
    		if gover.IsValid(v) {
    			goVersion = v
    		}
    	}
    
    	defaults := godebugForGoVersion(goVersion)
    	if defaults != nil {
    		// Apply m on top of defaults.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 13:52:10 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  6. src/encoding/json/encode.go

    			}
    			return +1
    		}
    		return slices.Compare(a.index, b.index)
    	})
    
    	// Delete all fields that are hidden by the Go rules for embedded fields,
    	// except that fields with JSON tags are promoted.
    
    	// The fields are sorted in primary order of name, secondary order
    	// of field index length. Loop over names; for each name, delete
    	// hidden fields by choosing the one dominant field that survives.
    	out := fields[:0]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 36.2K bytes
    - Viewed (0)
  7. src/internal/trace/testtrace/validation.go

    		t := ev.Task()
    		if typ, ok := v.tasks[t.ID]; ok {
    			if t.Type != typ {
    				e.Errorf("task end type %q doesn't match task start type %q for task %d", t.Type, typ, t.ID)
    			}
    			delete(v.tasks, t.ID)
    		}
    	case trace.EventLog:
    		// There's really not much here to check, except that we can
    		// generate a Log. The category and message are entirely user-created,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  8. src/net/http/fs.go

    	// guiding cache updates (e.g., Last-Modified might be useful if the
    	// response does not have an ETag field).
    	h := w.Header()
    	delete(h, "Content-Type")
    	delete(h, "Content-Length")
    	delete(h, "Content-Encoding")
    	if h.Get("Etag") != "" {
    		delete(h, "Last-Modified")
    	}
    	w.WriteHeader(StatusNotModified)
    }
    
    // checkPreconditions evaluates request preconditions and reports whether a precondition
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 17:06:47 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  9. src/go/types/check_test.go

    			copy(errList[index:], errList[index+1:])
    			filemap[line] = errList[:n]
    		} else {
    			// last entry - remove errList from filemap
    			delete(filemap, line)
    		}
    
    		// if filemap is empty, eliminate from errmap
    		if len(filemap) == 0 {
    			delete(errmap, filename)
    		}
    	}
    
    	// there should be no expected errors left
    	if len(errmap) > 0 {
    		t.Errorf("--- %s: unreported errors:", pkgName)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:45:33 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  10. src/os/removeall_at.go

    						pathErr.Path = base + string(PathSeparator) + pathErr.Path
    					}
    					numErr++
    					if recurseErr == nil {
    						recurseErr = err
    					}
    				}
    			}
    
    			// If we can delete any entry, break to start new iteration.
    			// Otherwise, we discard current names, get next entries and try deleting them.
    			if numErr != reqSize {
    				break
    			}
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:09:26 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top