<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>chamotarooo</author_name>
  <author_url>https://blog.hatena.ne.jp/chamotarooo/</author_url>
  <blog_title>chamotaroooのブログ</blog_title>
  <blog_url>https://chamotaro.hatenablog.com/</blog_url>
  <categories>
    <anon>技術</anon>
  </categories>
  <description>はじめに 前の記事で、oapi-codegen が生成した ServerInterfaceWrapper を1行ずつ読んだ。 Wrapper の先にある、手で書いた handler へ進もうとしたところで、別の疑問に引っかかった。 起動の処理を読むと、部品を作ってつなぎ、ルーターを返しているだけに見える。 部品を呼び出すコードも見当たらない。 それなのに、リクエストを送ると handler が呼ばれ、レスポンスが返ってくる。 Claude Code に「router インスタンス作っただけじゃん」と打って、順に説明させた。 この記事では、gin の API サーバーが起動してからレスポンスを返…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchamotaro.hatenablog.com%2Fentry%2Ftech%2Fgin-server-from-startup-to-response&quot; title=&quot;gin の API サーバーが、起動してからレスポンスを返すまで - chamotaroooのブログ&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-10-16 16:02:32</published>
  <title>gin の API サーバーが、起動してからレスポンスを返すまで</title>
  <type>rich</type>
  <url>https://chamotaro.hatenablog.com/entry/tech/gin-server-from-startup-to-response</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
