Pipe creates a synchronous in-memory pipe, returns pipe reader and writer which makes the read/write operation in parallel.
here is the documentation : https://golang.org/pkg/io/#Pipe
But, I didn’t get much info about the memory consummation by the pipe.