func (fc *FileCollection) AddView(v *FileCollectionView) error {
	for filename := range v.members {
		att, ok := fc.files[filename]
		if !ok {
			return errors.New(filename + " not found in collection")
		}
		v.members[filename] = att
	}
	v.col = fc
	fc.views = append(fc.views, v)
	return nil
}
// AddView creates a new View on a FileCollection, which can be used by sub-elements.
AddView creates a new View on a FileCollection, which can be used by sub-elements.
// AddView creates a new View on a FileCollection which can be used by sub - elements .
func (fc *FileCollection) AddView(v *FileCollectionView) error {
	for filename := range v.members {
		att, ok := fc.files[filename]
		if !ok {
			return errors.New(filename + " not found in collection")
		}
		v.members[filename] = att
	}
	v.col = fc
	fc.views = append(fc.views, v)
	return nil
}
func ( fc * FileCollection ) AddView ( v * FileCollectionView ) error { for filename := range v . members { att , ok := fc . files [ filename ] if ! ok { return errors . New ( filename + " " ) } v . members [ filename ] = att } v . col = fc fc . views = append ( fc . views , v ) return nil }
AddView creates a new View on a FileCollection, which can be used by sub-elements.
AddView creates a new View on a FileCollection which can be used by sub - elements .