code: func (r *RepoFile) WriteFile(path string, perm os.FileMode) error {
  	data, err := yaml.Marshal(r)
  	if err != nil {
  		return err
  	}
  	return ioutil.WriteFile(path, data, perm)
  }
docs: // WriteFile writes a repositories file to the given path.