<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ma2saka</author_name>
  <author_url>https://blog.hatena.ne.jp/ma2saka/</author_url>
  <blog_title>0xf</blog_title>
  <blog_url>https://0xf.hatenablog.com/</blog_url>
  <categories>
    <anon>プログラミング</anon>
    <anon>golang</anon>
  </categories>
  <description>//main.go package main import ( &quot;fmt&quot; &quot;os&quot; ) func main() { os.Exit(_main()) } func _main() int { fmt.Println(&quot;hello world&quot;) return 0 } こういう感じになってたとき、 //main_test.go package main func _mainTest() { _main() } func ExampleTest_main() { _mainTest() // Output: // hello world (bad) } としておくと、 % go test . o…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2F0xf.hatenablog.com%2Fentry%2F2024%2F10%2F16%2F183923&quot; title=&quot;golang の Example Testing 初めて触ったけどこれは便利じゃん - 0xf&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>2024-10-16 18:39:23</published>
  <title>golang の Example Testing 初めて触ったけどこれは便利じゃん</title>
  <type>rich</type>
  <url>https://0xf.hatenablog.com/entry/2024/10/16/183923</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
