I am building a blob storage system and i picked Go as the programming language. I create a stream to do a multipart file upload from client to the blob server.
The stre
You have two options.
The most direct way is to use io.MultiWriter.
io.MultiWriter
But if you need the hash to produce the multipart output, then you will have to copy to a bytes.Buffer and then write the buffer back to each writer.
bytes.Buffer