<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ema_hiro</author_name>
  <author_url>https://blog.hatena.ne.jp/ema_hiro/</author_url>
  <blog_title>emahiro/b.log</blog_title>
  <blog_url>https://ema-hiro.hatenablog.com/</blog_url>
  <categories>
    <anon>Go</anon>
  </categories>
  <description>pkg.go.dev Go のファイルを text ファイルにアーカイブするコマンドが純正で用意されているということを教えてもらって初めて知りました。 以下のように使うと指定したディレクトリ配下の Go のファイルをすべて任意のファイル形式でにアーカイブ出力してくれます。（なおその逆も可能です。） 例えばテキスト形式でアーカイブしたいときは以下のようにします。 # 出力をスキップする $ txtar ./*.go &gt; ./sample.txt &lt; /dev/null # echo で空文字を stdin にパイプで渡す $ echo &quot;&quot; | txtar ./*.go &gt; ./sample.t…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fema-hiro.hatenablog.com%2Fentry%2F2024%2F12%2F08%2F002235&quot; title=&quot;txtar コマンドで Go のファイルをテキストファイルにアーカイブする - emahiro/b.log&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-12-08 00:22:35</published>
  <title>txtar コマンドで Go のファイルをテキストファイルにアーカイブする</title>
  <type>rich</type>
  <url>https://ema-hiro.hatenablog.com/entry/2024/12/08/002235</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
