<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Motoshi0711</author_name>
  <author_url>https://blog.hatena.ne.jp/Motoshi0711/</author_url>
  <blog_title>every Tech Blog</blog_title>
  <blog_url>https://tech.every.tv/</blog_url>
  <categories>
    <anon>golang</anon>
  </categories>
  <description>はじめに こんにちは。デリッシュキッチン開発部でバックエンドエンジニアをしている鈴木です。 Go言語の組み込み関数len()は、一見シンプルに配列やスライスなどの「長さ」を返す関数ですが、その実装はコンパイラやランタイムレベルで特別な扱いを受けています。本記事では、lenの言語仕様からコンパイラ内部の処理フロー、SSA最適化、最終的なアセンブリコード、さらにはruntime内部構造体に至るまでを網羅的に順を追って詳しく説明していきます。 lenの仕様と定数評価 まず、Go言語仕様においてlen(x)がどのように定義されているかを確認しましょう。lenは組み込み関数であり、以下のような様々な型に…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.every.tv%2Fentry%2F2025%2F10%2F07%2F193652&quot; title=&quot;Goの組み込み関数 len() に詳しくなる - every Tech Blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/M/Motoshi0711/20251007/20251007192921.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-10-07 19:36:52</published>
  <title>Goの組み込み関数 len() に詳しくなる</title>
  <type>rich</type>
  <url>https://tech.every.tv/entry/2025/10/07/193652</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
