justforfunc #19: mastering io.Pipes
Video Statistics and Information
Channel: justforfunc: Programming in Go
Views: 29,385
Rating: undefined out of 5
Keywords: golang, justforfunc, programming, io, multireader, pipes, multiwriter, advanced, coding, screencast
Id: LHZ2CAZE6Gs
Channel Id: undefined
Length: 41min 23sec (2483 seconds)
Published: Sun Sep 10 2017
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.
Really getting concepts on io.Pipes in a way that I hadn't before, as well as other simpler concepts within it.
Thank you. A lot of the other justforfuncs somehow find a point they go over my head, this one hasn't, and has been the best of the learning for me.
awesome video, thank you! Those
Multi
types look really cool. I have found myself usingchan io.Reader
in the past and I feel like there are use cases forio.Pipe
in those places. Are there plans to make those buffered like channels, where maybe the write is not blocked if there is nothing reading yet?could you have simplified the
writer
type you created by embedding the*io.PipeWriter
inside it?edit: you'd end up having to override(?) the
Close
method to send on thedone
channel anyways so nevermind.Also, Fransec will be talking about io.Pipes tomorrow at Golang Syd!
Yet another great tutorial, with an opening from a great country! :)
The writer/footer correction makes me think of this classic: https://youtu.be/Ub7MkK-a0hU?t=13