code: func WriteManifest(m *Manifest, w io.Writer) error {
  	data, err := json.MarshalIndent(m, "", "  ")
  	if err != nil {
  		return err
  	}
  	_, err = w.Write(data)
  	return err
  }
docs: // WriteManifest encodes and writes manifest JSON to io.Writer.