<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ymmt2005</author_name>
  <author_url>https://blog.hatena.ne.jp/ymmt2005/</author_url>
  <blog_title>誰かの役に立てばいいブログ</blog_title>
  <blog_url>https://ymmt.hatenablog.com/</blog_url>
  <categories>
    <anon>Go</anon>
  </categories>
  <description>Linux 限定ですが、binfmt_misc を使えば shell script や Python と同じように実行ビットを立てるだけで実行できるようになります。 以下のスクリプトを /usr/local/bin/gorun とでもして保存 #!/bin/sh exec go run &quot;$@&quot; Debian/Ubuntu なら update-binfmts があるので以下を実行 sudo update-binfmts --install go /usr/local/bin/gorun --extension go Go スクリプトに実行ビットを立てる chmod a+x hello.go h…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fymmt.hatenablog.com%2Fentry%2F2015%2F04%2F14%2F091207&quot; title=&quot; 手軽に Go スクリプトを実行する - 誰かの役に立てばいいブログ&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>2015-04-14 09:12:07</published>
  <title> 手軽に Go スクリプトを実行する</title>
  <type>rich</type>
  <url>https://ymmt.hatenablog.com/entry/2015/04/14/091207</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
