Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Printf (0.17 sec)

  1. src/bytes/buffer_test.go

    	// Invalid runes, including negative ones, should be written as
    	// utf8.RuneError.
    	for _, r := range []rune{-1, utf8.MaxRune + 1} {
    		var buf Buffer
    		buf.WriteRune(r)
    		check(t, fmt.Sprintf("TestWriteInvalidRune (%d)", r), &buf, "\uFFFD")
    	}
    }
    
    func TestNext(t *testing.T) {
    	b := []byte{0, 1, 2, 3, 4}
    	tmp := make([]byte, 5)
    	for i := 0; i <= 5; i++ {
    		for j := i; j <= 5; j++ {
    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

    iteration's variable at that moment.
    </p>
    
    <pre>
    var prints []func()
    for i := 0; i < 5; i++ {
    	prints = append(prints, func() { println(i) })
    	i++
    }
    for _, p := range prints {
    	p()
    }
    </pre>
    
    <p>
    prints
    </p>
    
    <pre>
    1
    3
    5
    </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)
Back to top