Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Bytes (0.19 sec)

  1. doc/go1.17_spec.html

    since Go source text is Unicode characters encoded in UTF-8, multiple
    UTF-8-encoded bytes may represent a single integer value.  For
    instance, the literal <code>'a'</code> holds a single byte representing
    a literal <code>a</code>, Unicode U+0061, value <code>0x61</code>, while
    <code>'ä'</code> holds two bytes (<code>0xc3</code> <code>0xa4</code>) representing
    a literal <code>a</code>-dieresis, U+00E4, value <code>0xe4</code>.
    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)
  2. doc/go_spec.html

    <ol>
    <li>
    Converting a slice of bytes to a string type yields
    a string whose successive bytes are the elements of the slice.
    
    <pre>
    string([]byte{'h', 'e', 'l', 'l', '\xc3', '\xb8'})   // "hellø"
    string([]byte{})                                     // ""
    string([]byte(nil))                                  // ""
    
    type bytes []byte
    string(bytes{'h', 'e', 'l', 'l', '\xc3', '\xb8'})    // "hellø"
    
    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