<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>daisuzu</author_name>
  <author_url>https://blog.hatena.ne.jp/daisuzu/</author_url>
  <blog_title>daisuzu's notes</blog_title>
  <blog_url>https://daisuzu.hatenablog.com/</blog_url>
  <categories>
    <anon>Go</anon>
  </categories>
  <description>外部パッケージを使っていて、ちょっとした修正を試したい時は以下のような方法があります。 1. 外部パッケージをForkしてgo.modで置き換える 2. 外部パッケージのコピーをリポジトリに追加してgo.modで置き換える 3. 変更したファイルをリポジトリに追加してoverlayで書き換える 1. 外部パッケージをForkしてgo.modで置き換える 最も基本的なやり方なので特に理由がなければこちらの方法にするのが良いでしょう。 対象のパッケージのForkに変更を加え、以下のようにしてgo.modで置き換えます。 go mod edit -replace github.com/EXTERNA…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdaisuzu.hatenablog.com%2Fentry%2F2023%2F04%2F18%2F130622&quot; title=&quot;Goの外部パッケージに独自の変更を加える - daisuzu&amp;#39;s notes&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>2023-04-18 13:06:22</published>
  <title>Goの外部パッケージに独自の変更を加える</title>
  <type>rich</type>
  <url>https://daisuzu.hatenablog.com/entry/2023/04/18/130622</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
