Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for Hooten (0.34 sec)

  1. src/builtin/builtin.go

    // new elements. If it does not, a new underlying array will be allocated.
    // Append returns the updated slice. It is therefore necessary to store the
    // result of append, often in the variable holding the slice itself:
    //
    //	slice = append(slice, elem1, elem2)
    //	slice = append(slice, anotherSlice...)
    //
    // As a special case, it is legal to append a string to a byte slice, like this:
    //
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  2. src/archive/tar/writer.go

    	}
    	n, err := tw.curr.ReadFrom(r)
    	if err != nil && err != ErrWriteTooLong {
    		tw.err = err
    	}
    	return n, err
    }
    
    // Close closes the tar archive by flushing the padding, and writing the footer.
    // If the current file (from a prior call to [Writer.WriteHeader]) is not fully written,
    // then this returns an error.
    func (tw *Writer) Close() error {
    	if tw.err == ErrWriteAfterClose {
    		return nil
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  3. finisher_api.go

    	}
    }
    
    // FirstOrInit finds the first matching record, otherwise if not found initializes a new instance with given conds.
    // Each conds must be a struct or map.
    //
    // FirstOrInit never modifies the database. It is often used with Assign and Attrs.
    //
    //	// assign an email if the record is not found
    //	db.Where(User{Name: "non_existing"}).Attrs(User{Email: "******@****.***"}).FirstOrInit(&user)
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Jan 12 08:42:21 GMT 2024
    - 22.7K bytes
    - Viewed (0)
  4. internal/disk/directio_unsupported.go

    // so there is no risk of polluting the entire cache with data accessed once.
    // Another goal of DirectIO is to minimize the mutation of data by the kernel
    // before issuing IO to underlying devices. ZFS users often enable features like
    // compression and checksumming which currently necessitates mutating data in
    // the kernel.
    //
    // DirectIO semantics for a filesystem like ZFS would be quite different than
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Oct 18 18:08:15 GMT 2023
    - 2.6K bytes
    - Viewed (0)
  5. cmd/dynamic-timeouts.go

    			failures++
    		} else if dur > max {
    			max = dur
    		}
    	}
    
    	failPct := float64(failures) / float64(len(entries))
    
    	if failPct > dynamicTimeoutIncreaseThresholdPct {
    		// We are hitting the timeout too often, so increase the timeout by 25%
    		timeout := atomic.LoadInt64(&dt.timeout) * 125 / 100
    
    		// Set upper cap.
    		if timeout > int64(maxDynamicTimeout) {
    			timeout = int64(maxDynamicTimeout)
    		}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Aug 19 23:21:05 GMT 2022
    - 4.5K bytes
    - Viewed (0)
  6. src/bytes/buffer.go

    // returning a slice containing the data up to and including the delimiter.
    // If ReadBytes encounters an error before finding a delimiter,
    // it returns the data read before the error and the error itself (often io.EOF).
    // ReadBytes returns err != nil if and only if the returned data does not end in
    // delim.
    func (b *Buffer) ReadBytes(delim byte) (line []byte, err error) {
    	slice, err := b.readSlice(delim)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 17:10:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  7. cmd/object-api-utils.go

    // but may produce false positives on non-trivial paths.
    func pathNeedsClean(path []byte) bool {
    	if len(path) == 0 {
    		return true
    	}
    
    	rooted := path[0] == '/'
    	n := len(path)
    
    	r, w := 0, 0
    	if rooted {
    		r, w = 1, 1
    	}
    
    	for r < n {
    		switch {
    		case path[r] > 127:
    			// Non ascii.
    			return true
    		case path[r] == '/':
    			// multiple / elements
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Mar 11 11:55:34 GMT 2024
    - 35.6K bytes
    - Viewed (1)
  8. misc/ios/go_ios_exec.go

    }
    
    func installSimulator(appdir string) error {
    	cmd := exec.Command(
    		"xcrun", "simctl", "install",
    		"booted", // Install to the booted simulator.
    		appdir,
    	)
    	if out, err := cmd.CombinedOutput(); err != nil {
    		os.Stderr.Write(out)
    		return fmt.Errorf("xcrun simctl install booted %q: %v", appdir, err)
    	}
    	return nil
    }
    
    func uninstallDevice(bundleID string) error {
    	cmd := idevCmd(exec.Command(
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 23.4K bytes
    - Viewed (0)
  9. src/bufio/bufio.go

    // returning a slice pointing at the bytes in the buffer.
    // The bytes stop being valid at the next read.
    // If ReadSlice encounters an error before finding a delimiter,
    // it returns all the data in the buffer and the error itself (often io.EOF).
    // ReadSlice fails with error [ErrBufferFull] if the buffer fills without a delim.
    // Because the data returned from ReadSlice will be overwritten
    // by the next I/O operation, most clients should use
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Oct 12 14:39:08 GMT 2023
    - 21.8K bytes
    - Viewed (0)
  10. src/archive/tar/reader.go

    func (tr *Reader) next() (*Header, error) {
    	var paxHdrs map[string]string
    	var gnuLongName, gnuLongLink string
    
    	// Externally, Next iterates through the tar archive as if it is a series of
    	// files. Internally, the tar format often uses fake "files" to add meta
    	// data that describes the next file. These meta data "files" should not
    	// normally be visible to the outside. As such, this loop iterates through
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 08 01:59:14 GMT 2024
    - 26.8K bytes
    - Viewed (0)
Back to top