<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gsf_zero1</author_name>
  <author_url>https://blog.hatena.ne.jp/gsf_zero1/</author_url>
  <blog_title>いろいろ備忘録日記</blog_title>
  <blog_url>https://devlights.hatenablog.com/</blog_url>
  <categories>
    <anon>golang</anon>
  </categories>
  <description>関連記事 概要 サンプル ospipe.go 実行結果 参考情報 Goのおすすめ書籍 関連記事 GitHub - devlights/blog-summary: ブログ「いろいろ備忘録日記」のまとめ 概要 以下、自分用のメモです。 exec.Commandを使って、外部コマンドを実行して 結果を取り込んだりする際、どの言語でもそうですが実行したコマンドが大量の出力を行う場合は注意が必要です。 出力が大きすぎるとOSのバッファが一杯になって出力が詰まってしまいます。そのような場合、出力結果を一発で取得するのではなく ストリームとして扱って順次出力結果を取得していくことが必要になります。 *exe…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdevlights.hatenablog.com%2Fentry%2F2025%2F07%2F17%2F073000&quot; title=&quot;Goメモ-595 (exec.Commandで大きな出力をストリームで扱う)(os.Pipe, bufio.Scanner.Buffer) - いろいろ備忘録日記&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://go.dev/blog/gopher/header.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-07-17 07:30:00</published>
  <title>Goメモ-595 (exec.Commandで大きな出力をストリームで扱う)(os.Pipe, bufio.Scanner.Buffer)</title>
  <type>rich</type>
  <url>https://devlights.hatenablog.com/entry/2025/07/17/073000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
