Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/bytes/buffer_test.go

    	}
    	check(t, "TestLargeByteReads (3)", &buf, "")
    }
    
    func TestMixedReadsAndWrites(t *testing.T) {
    	var buf Buffer
    	s := ""
    	for i := 0; i < 50; i++ {
    		wlen := rand.Intn(len(testString))
    		if i%2 == 0 {
    			s = fillString(t, "TestMixedReadsAndWrites (1)", &buf, s, 1, testString[0:wlen])
    		} else {
    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

    </pre>
    
    <p>
    produces the same slice as allocating an array and <a href="#Slice_expressions">slicing</a>
    it, so these two expressions are equivalent:
    </p>
    
    <pre>
    make([]int, 50, 100)
    new([100]int)[0:50]
    </pre>
    
    <p>
    Like arrays, slices are always one-dimensional but may be composed to construct
    higher-dimensional objects.
    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