Пример #1
0
// Create creates the file name within the file system fs
func Create(fs fs.FS, name string) (File, error) {
	f, err := fs.Create(name)
	if err != nil {
		return nil, err
	}
	return &file{name: name, file: f}, nil
}