<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shinshin86</author_name>
  <author_url>https://blog.hatena.ne.jp/shinshin86/</author_url>
  <blog_title>at backyard</blog_title>
  <blog_url>https://shinshin86.hateblo.jp/</blog_url>
  <categories>
    <anon>Golang</anon>
    <anon>備忘録</anon>
  </categories>
  <description>Goを触る上での前提知識になるかと思うが、知らないで軽くハマったのでメモ書き。 そもそもGoでは *_test.go というファイル名のファイルはテスト用のファイルとなるため go run では実行できない。 *_test.go のファイルを実行しようとすると( 例えば go run hoge_test.go )、タイトルにも書いたように下記のエラーが出る。 go: cannot run *_test.go files こちらについては下記のドキュメントに記載がある。 pkg.go.dev To write a new test suite, create a file whose name …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshinshin86.hateblo.jp%2Fentry%2F2022%2F05%2F25%2F212419&quot; title=&quot;go: cannot run *_test.go filesというエラーについて - at backyard&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-05-25 21:24:19</published>
  <title>go: cannot run *_test.go filesというエラーについて</title>
  <type>rich</type>
  <url>https://shinshin86.hateblo.jp/entry/2022/05/25/212419</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
