code: func bufferFromReader(r io.Reader) (b *bytes.Buffer, err error) {
  	b = new(bytes.Buffer)
  	_, err = b.ReadFrom(r)
  	return
  }
docs: // bufferFromReader returns a new buffer populated with the contents of the specified Reader