Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for World (0.13 sec)

  1. src/bytes/example_test.go

    	"io"
    	"os"
    	"sort"
    	"strconv"
    	"unicode"
    )
    
    func ExampleBuffer() {
    	var b bytes.Buffer // A Buffer needs no initialization.
    	b.Write([]byte("Hello "))
    	fmt.Fprintf(&b, "world!")
    	b.WriteTo(os.Stdout)
    	// Output: Hello world!
    }
    
    func ExampleBuffer_reader() {
    	// A Buffer can turn a string or a []byte into an io.Reader.
    	buf := bytes.NewBufferString("R29waGVycyBydWxlIQ==")
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 15:54:40 GMT 2024
    - 15K bytes
    - Viewed (1)
  2. doc/next/1-intro.md

    <!--
    NOTE: In this document and others in this directory, the convention is to
    set fixed-width phrases with non-fixed-width spaces, as in
    `hello` `world`.
    -->
    
    <style>
      main ul li { margin: 0.5em 0; }
    </style>
    
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Wed Jan 24 16:44:53 GMT 2024
    - 256 bytes
    - Viewed (0)
  3. doc/initial/1-intro.md

    <!--
    NOTE: In this document and others in this directory, the convention is to
    set fixed-width phrases with non-fixed-width spaces, as in
    `hello` `world`.
    -->
    
    <style>
      main ul li { margin: 0.5em 0; }
    </style>
    
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Mon Jan 22 18:07:49 GMT 2024
    - 256 bytes
    - Viewed (0)
  4. src/bytes/bytes_test.go

    					IndexAny(x[:k], cs[:j])
    				}
    			})
    		}
    	}
    }
    
    func BenchmarkIndexAnyUTF8(b *testing.B) {
    	x := Repeat([]byte{'#'}, 2048) // Never matches set
    	cs := "你好世界, hello world. 你好世界, hello world. 你好世界, hello world."
    	for k := 1; k <= 2048; k <<= 4 {
    		for j := 1; j <= 64; j <<= 1 {
    			b.Run(fmt.Sprintf("%d:%d", k, j), func(b *testing.B) {
    				for i := 0; i < b.N; i++ {
    					IndexAny(x[:k], cs[:j])
    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)
  5. src/cmd/cgo/doc.go

    	type _Ctype_void [0]byte
    
    The _cgo_gotypes.go file also contains the definitions of the
    functions. They all have similar bodies that invoke runtime·cgocall
    to make a switch from the Go runtime world to the system C (GCC-based)
    world.
    
    For example, here is the definition of _Cfunc_puts:
    
    	//go:cgo_import_static _cgo_be59f0f25121_Cfunc_puts
    	//go:linkname __cgofn__cgo_be59f0f25121_Cfunc_puts _cgo_be59f0f25121_Cfunc_puts
    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)
  6. doc/go_mem.html

    </p>
    
    <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)
  7. src/archive/zip/reader_test.go

    				Mode:     0666,
    			},
    		},
    	},
    	{
    		// created in windows XP file manager.
    		Name: "winxp.zip",
    		File: []ZipTestFile{
    			{
    				Name:     "hello",
    				Content:  []byte("world \r\n"),
    				Modified: time.Date(2011, 12, 8, 10, 4, 24, 0, time.UTC),
    				Mode:     0666,
    			},
    			{
    				Name:     "dir/bar",
    				Content:  []byte("foo \r\n"),
    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)
  8. 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)
  9. doc/go1.17_spec.html

    interpreted_string_lit = `"` { unicode_value | byte_value } `"` .
    </pre>
    
    <pre>
    `abc`                // same as "abc"
    `\n
    \n`                  // same as "\\n\n\\n"
    "\n"
    "\""                 // same as `"`
    "Hello, world!\n"
    "日本語"
    "\u65e5本\U00008a9e"
    "\xff\u00FF"
    "\uD800"             // illegal: surrogate half
    "\U00110000"         // illegal: invalid Unicode code point
    </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)
  10. src/archive/tar/tar_test.go

    			&Header{Name: "bar", Mode: 0640, Size: int64(3)},
    			[]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