Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for immutable (0.18 sec)

  1. src/builtin/builtin.go

    type complex128 complex128
    
    // string is the set of all strings of 8-bit bytes, conventionally but not
    // necessarily representing UTF-8-encoded text. A string may be empty, but
    // not nil. Values of string type are immutable.
    type string string
    
    // int is a signed integer type that is at least 32 bits in size. It is a
    // distinct type, however, and not an alias for, say, int32.
    type int int
    
    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)
  2. 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)
  3. src/cmd/cgo/gcc.go

    		return false
    	}
    	s = s[:len(s)-3]
    	if s == "CFType" {
    		return true
    	}
    	if c.getTypeIDs[s] {
    		return true
    	}
    	if i := strings.Index(s, "Mutable"); i >= 0 && c.getTypeIDs[s[:i]+s[i+7:]] {
    		// Mutable and immutable variants share a type ID.
    		return true
    	}
    	return false
    }
    
    // Comment from Darwin's CFInternal.h
    /*
    // Tagged pointer support
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  4. 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