Re: [go-nuts] stdout to zlib and then to io.reader service

2016-10-14 Thread Walter Garcia
Thanks for your reply. After read your message, this are my test. cmd := exec.Command("mysqldump", args_mysqldump...) r, w := io.Pipe() z := zlib.NewWriter(w) defer z.Close() cmd.Stdout = z cmd.Start()

Re: [go-nuts] stdout to zlib and then to io.reader service

2016-10-13 Thread Pietro Gagliardi
What's the other end (the "other service") look like? > On Oct 13, 2016, at 1:43 PM, Walter Garcia wrote: > > Hello all > Im trying to test using zlib. > > In my test I need compress the Stdout from exec.Command to zlib and then send > to io.reader to use in other service >

[go-nuts] stdout to zlib and then to io.reader service

2016-10-13 Thread Walter Garcia
Hello all Im trying to test using zlib. In my test I need compress the Stdout from exec.Command to zlib and then send to io.reader to use in other service cmd := exec.Command("mysqldump", args...) .. cmd.StdoutPipe() z := zlib.NewWriter( ... ) . z -> to -> io.reader Could you help me?