提交 1f9149b8 编写于 作者: J jjwygjj

fix example flow

上级 42dc9a28
......@@ -4,6 +4,8 @@ import (
"context"
"fmt"
"github.com/yomorun/yomo/pkg/client"
y3 "github.com/yomorun/y3-codec-golang"
"github.com/yomorun/yomo/pkg/rx"
)
......@@ -43,3 +45,15 @@ func Handler(rxstream rx.RxStream) rx.RxStream {
stream := streamA.ZipFromIterable(streamB, zipper).StdOut().Encode(0x10)
return stream
}
func main() {
st, err := client.Connect("localhost", 9000).Name("training").Stream()
defer st.Close()
if err != nil {
panic(err)
}
st.Pipe(Handler)
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册