Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for immutable (0.21 sec)

  1. doc/go1.17_spec.html

    <p>
    A <i>string type</i> represents the set of string values.
    A string value is a (possibly empty) sequence of bytes.
    The number of bytes is called the length of the string and is never negative.
    Strings are immutable: once created,
    it is impossible to change the contents of a string.
    The predeclared string type is <code>string</code>;
    it is a <a href="#Type_definitions">defined type</a>.
    </p>
    
    <p>
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  2. doc/go_spec.html

    Since Go strings are immutable, the bytes passed to <code>String</code> must not be modified afterwards.
    [<a href="#Go_1.20">Go 1.20</a>]
    </p>
    
    <p>
    The function <code>StringData</code> returns a pointer to the underlying bytes of the <code>str</code> argument.
    For an empty string the return value is unspecified, and may be <code>nil</code>.
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 00:39:16 GMT 2024
    - 279.6K bytes
    - Viewed (0)
Back to top