Assemble file in go routine