func (fc *FileCollection) RemoveView(v *FileCollectionView) error {
	for filename := range v.members {
		delete(fc.files, filename)
	}
	for i, view := range fc.views {
		if view == v {
			fc.views = append(fc.views[:i], fc.views[i+1:]...)
			return nil
		}
	}
	return errors.New("view not found")
}
// RemoveView removes a FileCollectionView from a FileCollection
RemoveView removes a FileCollectionView from a FileCollection
// RemoveView removes a FileCollectionView from a FileCollection
func (fc *FileCollection) RemoveView(v *FileCollectionView) error {
	for filename := range v.members {
		delete(fc.files, filename)
	}
	for i, view := range fc.views {
		if view == v {
			fc.views = append(fc.views[:i], fc.views[i+1:]...)
			return nil
		}
	}
	return errors.New("view not found")
}
func ( fc * FileCollection ) RemoveView ( v * FileCollectionView ) error { for filename := range v . members { delete ( fc . files , filename ) } for i , view := range fc . views { if view == v { fc . views = append ( fc . views [ : i ] , fc . views [ i + 1 : ] ... ) return nil } } return errors . New ( " " ) }
RemoveView removes a FileCollectionView from a FileCollection
RemoveView removes a FileCollectionView from a FileCollection