Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for Maps (0.13 sec)

  1. doc/go1.17_spec.html

    <p>
    A new, empty map value is made using the built-in
    function <a href="#Making_slices_maps_and_channels"><code>make</code></a>,
    which takes the map type and an optional capacity hint as arguments:
    </p>
    
    <pre>
    make(map[string]int)
    make(map[string]int, 100)
    </pre>
    
    <p>
    The initial capacity does not bound its size:
    maps grow to accommodate the number of items
    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. src/builtin/builtin.go

    // number c. The return value will be floating point type corresponding to
    // the type of c.
    func imag(c ComplexType) FloatType
    
    // The clear built-in function clears maps and slices.
    // For maps, clear deletes all entries, resulting in an empty map.
    // For slices, clear sets all elements up to the length of the slice
    // to the zero value of the respective element type. If the argument
    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)
  3. doc/go_spec.html

    <p>
    A new, empty map value is made using the built-in
    function <a href="#Making_slices_maps_and_channels"><code>make</code></a>,
    which takes the map type and an optional capacity hint as arguments:
    </p>
    
    <pre>
    make(map[string]int)
    make(map[string]int, 100)
    </pre>
    
    <p>
    The initial capacity does not bound its size:
    maps grow to accommodate the number of items
    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)
  4. doc/go_mem.html

    can lead to inconsistent values not corresponding to a single write.
    When the values depend on the consistency
    of internal (pointer, length) or (pointer, type) pairs,
    as can be the case for interface values, maps,
    slices, and strings in most Go implementations,
    such races can in turn lead to arbitrary memory corruption.
    </p>
    
    <p>
    Examples of incorrect synchronization are given in the
    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)
Back to top