<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>itchyny</author_name>
  <author_url>https://blog.hatena.ne.jp/itchyny/</author_url>
  <blog_title>プログラムモグモグ</blog_title>
  <blog_url>https://itchyny.hatenablog.com/</blog_url>
  <categories>
    <anon>Go</anon>
  </categories>
  <description>Go 1.18 がリリースされて一か月程経ちました。 先日 go run を (go generate経由で) 使っているコードの挙動を見ていたら、モジュール周りの挙動が Go 1.17 と異なることに気が付きました。 Go 1.16 以降、go get や go mod tidy のような一部のコマンドを除くと、go.mod に足りない依存パッケージがあるときはエラーになります。 go runやgo testなどでもgo.modを更新したい場合は、-mod=modというフラグを指定します。 go runは、Goのファイルのコンパイルと実行を行うコマンドです。 パッケージを引数として利用される…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fitchyny.hatenablog.com%2Fentry%2F2022%2F04%2F22%2F120000&quot; title=&quot;Go 1.18 で go run -mod=mod の非互換変更に気がついて報告した - プログラムモグモグ&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>2022-04-22 12:00:00</published>
  <title>Go 1.18 で go run -mod=mod の非互換変更に気がついて報告した</title>
  <type>rich</type>
  <url>https://itchyny.hatenablog.com/entry/2022/04/22/120000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
