Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for Successful (0.28 sec)

  1. src/bytes/buffer.go

    // not a successful [Buffer.ReadRune], UnreadRune returns an error.  (In this regard
    // it is stricter than [Buffer.UnreadByte], which will unread the last byte
    // from any read operation.)
    func (b *Buffer) UnreadRune() error {
    	if b.lastRead <= opInvalid {
    		return errors.New("bytes.Buffer: UnreadRune: previous operation was not a successful ReadRune")
    	}
    	if b.off >= int(b.lastRead) {
    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)
  2. src/bytes/buffer_test.go

    		t.Fatalf("Read(nil) = %d,%v; want 0,nil", n, err)
    	}
    	if err := b.UnreadByte(); err == nil {
    		t.Fatal("UnreadByte after Read(nil): got no error")
    	}
    
    	// after successful read
    	if _, err := b.ReadBytes('m'); err != nil {
    		t.Fatalf("ReadBytes: %v", err)
    	}
    	if err := b.UnreadByte(); err != nil {
    		t.Fatalf("UnreadByte: %v", err)
    	}
    	c, err := b.ReadByte()
    	if err != nil {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 13:31:36 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  3. src/archive/tar/strconv.go

    	}
    	return strings.TrimRight(fmt.Sprintf("%s%d.%09d", sign, secs, nsecs), "0")
    }
    
    // parsePAXRecord parses the input PAX record string into a key-value pair.
    // If parsing is successful, it will slice off the currently read record and
    // return the remainder as r.
    func parsePAXRecord(s string) (k, v, r string, err error) {
    	// The size field ends at the first space.
    	nStr, rest, ok := strings.Cut(s, " ")
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 01 14:28:42 GMT 2023
    - 9K bytes
    - Viewed (0)
  4. src/bufio/bufio_test.go

    		t.Fatalf("want %q got %q, err=%v", "", string(s), err)
    	}
    	if _, err := buf.Peek(1); err != io.EOF {
    		t.Fatalf("want EOF got %v", err)
    	}
    
    	// Test for issue 3022, not exposing a reader's error on a successful Peek.
    	buf = NewReaderSize(dataAndEOFReader("abcd"), 32)
    	if s, err := buf.Peek(2); string(s) != "ab" || err != nil {
    		t.Errorf(`Peek(2) on "abcd", EOF = %q, %v; want "ab", nil`, string(s), err)
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  5. doc/go1.17_spec.html

    </pre>
    
    <p>
    yields an additional untyped boolean result reporting whether the
    communication succeeded. The value of <code>ok</code> is <code>true</code>
    if the value received was delivered by a successful send operation to the
    channel, or <code>false</code> if it is a zero value generated because the
    channel is closed and empty.
    </p>
    
    
    <h3 id="Conversions">Conversions</h3>
    
    <p>
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  6. doc/go_spec.html

    	type inference fails.
    	</p>
    </li>
    </ol>
    
    <p>
    If not all type arguments have been found after these two phases, type inference fails.
    </p>
    
    <p>
    If the two phases are successful, type inference determined a type argument for each
    bound type parameter:
    </p>
    
    <pre>
    	P<sub>k</sub> ➞ A<sub>k</sub>
    </pre>
    
    <p>
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu May 02 22:43:51 GMT 2024
    - 279.6K bytes
    - Viewed (0)
  7. doc/go_mem.html

    is synchronized before the return from <code>l.RLock</code>,
    and the matching call to <code>l.RUnlock</code> is synchronized before the return from call <i>n</i>+1 to <code>l.Lock</code>.
    </p>
    
    <p class="rule">
    A successful call to <code>l.TryLock</code> (or <code>l.TryRLock</code>)
    is equivalent to a call to <code>l.Lock</code> (or <code>l.RLock</code>).
    An unsuccessful call has no synchronizing effect at all.
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Mon Mar 04 15:54:42 GMT 2024
    - 26.6K bytes
    - Viewed (0)
Back to top