Buffered Pipe writer as suggested by Aliaksandr Valialkin at golang nuts: https://groups.google.com/forum/?fromgroups=#!topic/golang-nuts/hEZkfNNmEoA