Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for allocated (0.15 sec)

  1. doc/go1.17_spec.html

              []T              slice capacity
              chan T           channel buffer capacity
    </pre>
    
    <p>
    The capacity of a slice is the number of elements for which there is
    space allocated in the underlying array.
    At any time the following relationship holds:
    </p>
    
    <pre>
    0 &lt;= len(s) &lt;= cap(s)
    </pre>
    
    <p>
    The length of a <code>nil</code> slice, map or channel is 0.
    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)
Back to top