Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for behavior (0.14 sec)

  1. src/bytes/buffer_test.go

    	}
    	return 0, io.EOF
    }
    
    // Make sure that an empty Buffer remains empty when
    // it is "grown" before a Read that panics
    func TestReadFromPanicReader(t *testing.T) {
    
    	// First verify non-panic behaviour
    	var buf Buffer
    	i, err := buf.ReadFrom(panicReader{})
    	if err != nil {
    		t.Fatal(err)
    	}
    	if i != 0 {
    		t.Fatalf("unexpected return from bytes.ReadFrom (1): got: %d, want %d", i, 0)
    	}
    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)
  2. doc/go_spec.html

    interface{ ~[]byte | myString }           // bytestring
    </pre>
    
    <p>
    Note that <code>bytestring</code> is not a real type; it cannot be used to declare
    variables or compose other types. It exists solely to describe the behavior of some
    operations that read from a sequence of bytes, which may be a byte slice or a string.
    </p>
    
    <h3 id="Type_identity">Type identity</h3>
    
    <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)
Back to top