="take-composite-literal-address" class="tmd-header-3">
Composite Literals Are Unaddressable But Can Take Addresses
</h3>
<p></p>
<div class="tmd-usual">
Generally, only addressable values can take addresses. But there is a syntactic sugar in Go, which allows us to take addresses on composite literals. A syntactic sugar is an exception in syntax to make programming convenient.
</div>
<p></p>
<div class="tmd-usual">
For example,
</div>
<pre class="tmd-code line-numbers">
<code class="language-go">package mai