<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hnw</author_name>
  <author_url>https://blog.hatena.ne.jp/hnw/</author_url>
  <blog_title>hnwの日記</blog_title>
  <blog_url>https://hnw.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>私はSlackの入力テキストに対応して外部コマンドを起動するbotをGoで自作しています。このbotに最近「&amp;&amp;」などUnixシェルの演算子を部分的に実装したのですが、その際go-shellwordsが便利だったという話を紹介します。 私の作っているSlack botの簡単な紹介 私の作っているSlack botは入力テキストのパターンマッチを行い対応する外部コマンドを実行するようなものです。実行例を下記に示します。 自作Slack botの実行例 この例では銀行サイトから情報取得するNode.jsスクリプト2つ（口座振替照会、残高照会）を連続で実行して銀行引落に必要な残高があるかを確認してい…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhnw.hatenablog.com%2Fentry%2F2021%2F01%2F17%2F204908&quot; title=&quot;go-shellwordsでUnixシェル的なものを実装した - hnwの日記&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>https://cdn-ak.f.st-hatena.com/images/fotolife/h/hnw/20210117/20210117185029.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-01-17 20:49:08</published>
  <title>go-shellwordsでUnixシェル的なものを実装した</title>
  <type>rich</type>
  <url>https://hnw.hatenablog.com/entry/2021/01/17/204908</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
