title: Is there a way to use redigo with data text file as well as redis-cli pipeline?
body: <p>I use Redis bulk insert feature with pipeline.</p>
  <p>I have <code>data.txt</code> file.</p>
  <pre><code>FLUSHDB
  HSET 02-00-101 date &quot;2021-03-15&quot;
  HSET 02-00-102 date &quot;2021-03-15&quot;
  HSET 02-00-103 date &quot;2021-03-15&quot;
  HSET 02-00-104 date &quot;2021-03-15&quot;
  HSET 02-00-105 date &quot;2021-03-15&quot;
  </code></pre>
  <p>then insert the data to Redis DB like below.</p>
  <pre><code>cat data.txt | redis-cli --pipe
  </code></pre>
  <p>I'd like to use <a href="https://github.com/gomodule/redigo" rel="nofollow noreferrer">redigo</a> in Golang and reuse the <code>data.txt</code> file.</p>
  <p>Is there a way to use redigo with the data text file as well as redis-cli pipeline above?</p>