n(s)</code> is constant if <code class="tmd-code-span">s</code> is a string constant.
</div>
</li>
<li class="tmd-list-item">
<div class="tmd-usual">
the expressions <code class="tmd-code-span">len(s)</code> and <code class="tmd-code-span">cap(s)</code> are constants if the type of <code class="tmd-code-span">s</code> is an array or pointer to an array and the expression <code class="tmd-code-span">s</code> does not contain channel receives or (non-constant) function calls.
</div>
</li>
</ul>
<p></p>
<div c