code: func writeZip(writer io.Writer, files []fileEntry) error {
  	zipWriter := zip.NewWriter(writer)
  	defer zipWriter.Close()
  
  	for _, file := range files {
  		zipFile, err := zipWriter.Create(file.name)
  		if err != nil {
  			return err
  		}
  
  		_, err = zipFile.Write(file.data)
  		if err != nil {
  			return err
  		}
  	}
  
  	return zipWriter.Close()
  }
docs: // writeZip writes a zip file containing the given entries