IO Pipes

With io.Pipe we have a convenient way to connect a writer to a reader, really similar to how channels work

pr, pw := io.Pipe()

References

justforfunc #19: mastering io.Pipes