<!--{
"Title": "The Go Programming Language Specification - Go 1.18 Draft (incomplete)",
- "Subtitle": "Version of Jan 18, 2022",
+ "Subtitle": "Version of Jan 21, 2022",
"Path": "/ref/spec"
}-->
If the key type is an interface type, these
comparison operators must be defined for the dynamic key values;
failure will cause a <a href="#Run_time_panics">run-time panic</a>.
-
</p>
<pre>
make new panic print println real recover
</pre>
-
<h3 id="Exported_identifiers">Exported identifiers</h3>
<p>
<p>
An operand name denoting a <a href="#Function_declarations">type-parameterized function</a>
-may be followed by a list of <a href="#Type_arguments">type arguments</a>; the
+may be followed by a list of <a href="#Instantiations">type arguments</a>; the
resulting operand is an <a href="#Instantiations">instantiated</a> function.
</p>
<h3 id="Instantiations">Instantiations</h3>
<p>
-A parameterized function or type is <i>instantiated</i> by substituting type arguments
-for the type parameters.
+A parameterized function or type is <i>instantiated</i> by substituting
+<i>type arguments</i> for the type parameters.
Instantiation proceeds in two phases:
</p>
>> right shift integer >> integer >= 0
</pre>
-
<h4 id="Integer_operators">Integer operators</h4>
<p>
Loosely speaking, these unsigned integer operations
discard high bits upon overflow, and programs may rely on "wrap around".
</p>
+
<p>
For signed integers, the operations <code>+</code>,
<code>-</code>, <code>*</code>, <code>/</code>, and <code><<</code> may legally
in the string starting at byte index 0. On successive iterations, the index value will be the
index of the first byte of successive UTF-8-encoded code points in the string,
and the second value, of type <code>rune</code>, will be the value of
-the corresponding code point. If the iteration encounters an invalid
+the corresponding code point. If the iteration encounters an invalid
UTF-8 sequence, the second value will be <code>0xFFFD</code>,
the Unicode replacement character, and the next iteration will advance
a single byte in the string.
returns a received value along with an indication of whether the channel is closed.
</p>
-
<h3 id="Length_and_capacity">Length and capacity</h3>
<p>
[]T slice length
map[K]T map length (number of defined keys)
chan T number of elements queued in channel buffer
- type parameter see below
+ type parameter see below
cap(s) [n]T, *[n]T array length (== n)
[]T slice capacity
chan T channel buffer capacity
- type parameter see below
+ type parameter see below
</pre>
<p>