Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for Mello (0.13 sec)

  1. src/bytes/buffer_test.go

    	delim    byte
    	expected []string
    	err      error
    }{
    	{"", 0, []string{""}, io.EOF},
    	{"a\x00", 0, []string{"a\x00"}, nil},
    	{"abbbaaaba", 'b', []string{"ab", "b", "b", "aaab"}, nil},
    	{"hello\x01world", 1, []string{"hello\x01"}, nil},
    	{"foo\nbar", 0, []string{"foo\nbar"}, io.EOF},
    	{"alpha\nbeta\ngamma\n", '\n', []string{"alpha\n", "beta\n", "gamma\n"}, 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)
  2. src/cmd/cgo/doc.go

    	// #include <stdio.h>
    	// #include <stdlib.h>
    	//
    	// static void myprint(char* s) {
    	//   printf("%s\n", s);
    	// }
    	import "C"
    	import "unsafe"
    
    	func main() {
    		cs := C.CString("Hello from stdio")
    		C.myprint(cs)
    		C.free(unsafe.Pointer(cs))
    	}
    
    A few special functions convert between Go and C types
    by making copies of the data. In pseudo-Go definitions:
    
    	// Go string to C string
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  3. src/archive/zip/writer_test.go

    		nonUTF8 bool
    		flags   uint16
    	}{
    		{
    			name:    "hi, hello",
    			comment: "in the world",
    			flags:   0x8,
    		},
    		{
    			name:    "hi, こんにちわ",
    			comment: "in the world",
    			flags:   0x808,
    		},
    		{
    			name:    "hi, こんにちわ",
    			comment: "in the world",
    			nonUTF8: true,
    			flags:   0x8,
    		},
    		{
    			name:    "hi, hello",
    			comment: "in the 世界",
    			flags:   0x808,
    		},
    		{
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Sep 15 19:04:06 GMT 2023
    - 14.1K bytes
    - Viewed (0)
  4. src/archive/tar/reader_test.go

    			testRemaining{1, 1},
    		},
    	}, {
    		maker: makeReg{"hello", 5},
    		tests: []testFnc{
    			testRemaining{5, 5},
    			testRead{5, "hello", io.EOF},
    			testRemaining{0, 0},
    		},
    	}, {
    		maker: makeReg{"hello, world", 50},
    		tests: []testFnc{
    			testRemaining{50, 50},
    			testRead{7, "hello, ", nil},
    			testRemaining{43, 43},
    			testRead{5, "world", nil},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Nov 21 21:14:38 GMT 2022
    - 47.1K bytes
    - Viewed (0)
  5. src/bytes/example_test.go

    	b = bytes.TrimPrefix(b, []byte("Goodbye,"))
    	b = bytes.TrimPrefix(b, []byte("See ya,"))
    	fmt.Printf("Hello%s", b)
    	// Output: Hello, world!
    }
    
    func ExampleTrimSpace() {
    	fmt.Printf("%s", bytes.TrimSpace([]byte(" \t\n a lone gopher \n\t\r\n")))
    	// Output: a lone gopher
    }
    
    func ExampleTrimSuffix() {
    	var b = []byte("Hello, goodbye, etc!")
    	b = bytes.TrimSuffix(b, []byte("goodbye, etc!"))
    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. src/builtin/builtin.go

    //
    //	slice = append(slice, elem1, elem2)
    //	slice = append(slice, anotherSlice...)
    //
    // As a special case, it is legal to append a string to a byte slice, like this:
    //
    //	slice = append([]byte("hello "), "world"...)
    func append(slice []Type, elems ...Type) []Type
    
    // The copy built-in function copies elements from a source slice into a
    // destination slice. (As a special case, it also will copy bytes from a
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  7. doc/go_mem.html

    <p>
    For example, in this program:
    </p>
    
    <pre>
    var a string
    
    func f() {
    	print(a)
    }
    
    func hello() {
    	a = "hello, world"
    	go f()
    }
    </pre>
    
    <p>
    calling <code>hello</code> will print <code>"hello, world"</code>
    at some point in the future (perhaps after <code>hello</code> has returned).
    </p>
    
    <h3 id="goexit">Goroutine destruction</h3>
    
    <p>
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Mon Mar 04 15:54:42 GMT 2024
    - 26.6K bytes
    - Viewed (0)
  8. src/archive/tar/writer_test.go

    			testReadFrom{fileOps{""}, 0, nil},
    			testReadFrom{fileOps{"a"}, 0, ErrWriteTooLong},
    			testRemaining{0, 0},
    		},
    	}, {
    		maker: makeReg{5, "hello"},
    		tests: []testFnc{
    			testRemaining{5, 5},
    			testWrite{"hello", 5, nil},
    			testRemaining{0, 0},
    		},
    	}, {
    		maker: makeReg{5, "\x00\x00\x00\x00\x00"},
    		tests: []testFnc{
    			testRemaining{5, 5},
    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)
  9. src/archive/tar/tar_test.go

    			[]byte("foo"),
    		}, {
    			&Header{Name: "world", Mode: 0640, Size: int64(5)},
    			[]byte("hello"),
    		}},
    	}, {
    		"GNU",
    		[]file{{
    			&Header{Name: "bar", Mode: 0640, Size: int64(3), Devmajor: -1},
    			[]byte("foo"),
    		}, {
    			&Header{Name: "world", Mode: 0640, Size: int64(5), Devmajor: -1},
    			[]byte("hello"),
    		}},
    	}, {
    		"PAX",
    		[]file{{
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24K bytes
    - Viewed (0)
Back to top