<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ro9rito</author_name>
  <author_url>https://blog.hatena.ne.jp/ro9rito/</author_url>
  <blog_title>ROXX開発者ブログ</blog_title>
  <blog_url>https://techblog.roxx.co.jp/</blog_url>
  <categories>
  </categories>
  <description>この記事は個人ブログと同じ内容です www.ritolab.com Go では、構造体を利用してデータを管理することが一般的ですが、オプションの多い構造体の初期化や、変更を避けたいオブジェクトの生成には工夫が必要です。 本記事では、柔軟かつ一貫性のあるオブジェクトの生成を可能にする Builder パターンについて、その基本的な実装方法と適用例を紹介します。 Builder パターン Builder パターンは、複雑なオブジェクトの生成を簡潔にし、可読性を向上させるためのデザインパターンです。特に オプションの多い構造体の生成や、イミュータブルなオブジェクトを作成する場合に便利です。 Go で…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftechblog.roxx.co.jp%2Fentry%2F2025%2F01%2F28%2F193332&quot; title=&quot;Go における Builder パターン - 構造体生成の整理と制御 - ROXX開発者ブログ&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.blog.st-hatena.com/images/theme/og-image-1500.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-01-28 19:33:32</published>
  <title>Go における Builder パターン - 構造体生成の整理と制御</title>
  <type>rich</type>
  <url>https://techblog.roxx.co.jp/entry/2025/01/28/193332</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
