Update README.md

This commit is contained in:
Zane.Y 2017-07-19 11:35:46 +08:00 committed by GitHub
parent 5fe6da1db1
commit f85b537eed
1 changed files with 6 additions and 2 deletions

View File

@ -3,8 +3,10 @@
<p>Provide functional programming interface in golang</p>
使用指南:
<p>0.拉取工具包</p>
<p><code>go get github.com/ZaneYork/go-func/stream</code></p>
<p>1.引入工具包:</p>
<p><code>import . "github.com/go-func/stream"</code></p>
<p><code>import . "github.com/ZaneYork/go-func/stream"</code></p>
<p>2.使用<code>NewSteam</code>或者<code>NewParallelStream</code>函数开启数据流</p>
<p>3.然后追加流操作函数以修改数据</p>
<p>4.使用如Collect、Reduce等流终结操作函数拿到处理结果集</p>
@ -12,8 +14,10 @@
<p>本工具包提供的并发数据流在处理压力较低或者单核机器上时,并发处理为负优化,请斟酌选择是否并发</p>
<hr>
Usage:
<p>0.Clone source code</p>
<p><code>go get github.com/ZaneYork/go-func/stream</code></p>
<p>1.import package:</p>
<p><code>import . "github.com/go-func/stream"</code></p>
<p><code>import . "github.com/ZaneYork/go-func/stream"</code></p>
<p>2.Start steam with function <code>NewSteam</code> or <code>NewParallelStream</code></p>
<p>3.Append operation function to modify element in stream</p>
<p>4.Terminate stream with any termination operation like Collect,Reduce,etc. </p>