Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/bytes/buffer_test.go

    	{"alpha\nbeta\ngamma", '\n', []string{"alpha\n", "beta\n", "gamma"}, io.EOF},
    }
    
    func TestReadBytes(t *testing.T) {
    	for _, test := range readBytesTests {
    		buf := NewBufferString(test.buffer)
    		var err error
    		for _, expected := range test.expected {
    			var bytes []byte
    			bytes, err = buf.ReadBytes(test.delim)
    			if string(bytes) != expected {
    				t.Errorf("expected %q, got %q", expected, bytes)
    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

    	<li>the index <code>x</code> is <i>in range</i> if <code>0 &lt;= x &lt; len(a)</code>,
    	    otherwise it is <i>out of range</i></li>
    </ul>
    
    <p>
    For <code>a</code> of <a href="#Array_types">array type</a> <code>A</code>:
    </p>
    <ul>
    	<li>a <a href="#Constants">constant</a> index must be in range</li>
    	<li>if <code>x</code> is out of range at run time,
    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