Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for ab (0.12 sec)

  1. src/bytes/bytes_test.go

    	{"Trim", []byte{'a', 'a'}, "a", nil},
    	{"Trim", []byte{'a'}, "ab", nil},
    	{"Trim", []byte{'a', 'b'}, "ab", nil},
    	{"Trim", []byte("☺"), "☺", nil},
    	{"TrimLeft", nil, "", nil},
    	{"TrimLeft", []byte{}, "", nil},
    	{"TrimLeft", []byte{'a'}, "a", nil},
    	{"TrimLeft", []byte{'a', 'a'}, "a", nil},
    	{"TrimLeft", []byte{'a'}, "ab", nil},
    	{"TrimLeft", []byte{'a', 'b'}, "ab", nil},
    	{"TrimLeft", []byte("☺"), "☺", nil},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  2. src/bytes/buffer_test.go

    			t.Errorf("Write: got (%d, %v), want (%d, %v)", n, err, want, nil)
    		}
    		check(t, "TestBasicOperations (4)", &buf, "a")
    
    		buf.WriteByte(testString[1])
    		check(t, "TestBasicOperations (5)", &buf, "ab")
    
    		n, err = buf.Write(testBytes[2:26])
    		if want := 24; err != nil || n != want {
    			t.Errorf("Write: got (%d, %v), want (%d, %v)", n, err, want, 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/writer_test.go

    		tests: []testFnc{
    			testRemaining{8, 5},
    			testWrite{"ab\x00\x00\x00cde", 8, nil},
    			testWrite{"a", 0, ErrWriteTooLong},
    			testRemaining{0, 0},
    		},
    	}, {
    		maker: makeSparse{makeReg{5, "abcde"}, sparseHoles{{2, 3}}, 8},
    		tests: []testFnc{
    			testWrite{"ab\x00\x00\x00cdez", 8, ErrWriteTooLong},
    			testRemaining{0, 0},
    		},
    	}, {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 27 16:39:23 GMT 2024
    - 38.7K bytes
    - Viewed (0)
  4. src/archive/zip/reader_test.go

    0000340 99 a4 25 72 85 49 2c be 0b 5b af 8f e5 6e 81 a6
    0000350 a3 5a 6f 39 53 3a ab 7a 8b 1e 26 f7 46 6c 7d 26
    0000360 53 b3 22 31 94 d3 83 f2 18 4d f5 92 33 27 53 97
    0000370 0f d3 e6 55 9c a6 c5 31 87 6f d3 f3 ae 39 6f 56
    0000380 10 7b ab 7e d0 b4 ca f2 b8 05 be 3f 0e 6e 5a 75
    0000390 ab 0c f5 37 0e ba 8e 75 71 7a aa ed 7a dd 6a 63
    00003a0 be 9b a0 97 27 6a 6f e7 d3 8b c4 7c ec d3 91 56
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  5. src/bytes/example_test.go

    }
    
    func ExampleBuffer_Next() {
    	var b bytes.Buffer
    	b.Grow(64)
    	b.Write([]byte("abcde"))
    	fmt.Printf("%s\n", b.Next(2))
    	fmt.Printf("%s\n", b.Next(2))
    	fmt.Printf("%s", b.Next(2))
    	// Output:
    	// ab
    	// cd
    	// e
    }
    
    func ExampleBuffer_Read() {
    	var b bytes.Buffer
    	b.Grow(64)
    	b.Write([]byte("abcde"))
    	rdbuf := make([]byte, 1)
    	n, err := b.Read(rdbuf)
    	if err != nil {
    		panic(err)
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 15:54:40 GMT 2024
    - 15K bytes
    - Viewed (1)
  6. doc/go1.17_spec.html

    </p>
    
    <p>
    For instance, given the declarations
    </p>
    
    <pre>
    var x = I(T{}).ab()   // x has an undetected, hidden dependency on a and b
    var _ = sideEffect()  // unrelated to x, a, or b
    var a = b
    var b = 42
    
    type I interface      { ab() []int }
    type T struct{}
    func (T) ab() []int   { return []int{a, b} }
    </pre>
    
    <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)
  7. doc/go_spec.html

    </p>
    
    <p>
    For instance, given the declarations
    </p>
    
    <pre>
    var x = I(T{}).ab()   // x has an undetected, hidden dependency on a and b
    var _ = sideEffect()  // unrelated to x, a, or b
    var a = b
    var b = 42
    
    type I interface      { ab() []int }
    type T struct{}
    func (T) ab() []int   { return []int{a, b} }
    </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