Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 41 of 41 for x1 (0.02 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. doc/go_spec.html

    Thus the length and capacity of a slice literal are the maximum
    element index plus one. A slice literal has the form
    </p>
    
    <pre>
    []T{x1, x2, … xn}
    </pre>
    
    <p>
    and is shorthand for a slice operation applied to an array:
    </p>
    
    <pre>
    tmp := [n]T{x1, x2, … xn}
    tmp[0 : n]
    </pre>
    
    <h4>Map literals</h4>
    
    <p>
    For map literals, each element must have a key.
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Wed Apr 01 23:39:18 GMT 2026
    - 287.8K bytes
    - Click Count (1)
Back to Top