<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>zetamatta</author_name>
  <author_url>https://blog.hatena.ne.jp/zetamatta/</author_url>
  <blog_title>標準愚痴出力</blog_title>
  <blog_url>https://zetamatta.hatenablog.com/</blog_url>
  <categories>
    <anon>go</anon>
  </categories>
  <description>Go 1.12 で、実行したプロセスの ERRORLEVEL を得るためのメソッド：&quot;os&quot;.ProcessState.ExitCode() が追加されたので、対応の準備をすすめていて気づいたのだけれども… 昔の Go言語だと、0 以外の ERRORLEVEL を受け取ると、&quot;os/exec&quot;.Cmd.Run() で fmt.Errorf(&quot;exit status %d&quot;,(ERRORLEVEL値) ) みたいな error を返していたように思うんだけど、1.11～だと、そういう挙動が見られなくなった。 いつ、どうして変わったんだろう… golang の issue を検索したが、数が多すぎ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fzetamatta.hatenablog.com%2Fentry%2F2019%2F03%2F04%2F005208&quot; title=&quot; 昔の Go は exit status が fmt.Errorf(&amp;quot;exit status %d&amp;quot;,ERRORLEVEL) で返ってきたような - 標準愚痴出力&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>2019-03-04 00:52:08</published>
  <title> 昔の Go は exit status が fmt.Errorf(&quot;exit status %d&quot;,ERRORLEVEL) で返ってきたような</title>
  <type>rich</type>
  <url>https://zetamatta.hatenablog.com/entry/2019/03/04/005208</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
