You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that future releases of go will bring us new io/fs package with some interfaces for file system (https://tip.golang.org/pkg/io/fs).
Is it possible to make afero compatible with io/fs?
The text was updated successfully, but these errors were encountered:
./main.go:12:38: cannot use afero.NewMemMapFs() (type afero.Fs) as type fs.FS in argument to fs.Stat:
afero.Fs does not implement fs.FS (wrong type for Open method)
have Open(string) (afero.File, error)
want Open(string) (fs.File, error)
It seems that future releases of go will bring us new io/fs package with some interfaces for file system (https://tip.golang.org/pkg/io/fs).
Is it possible to make afero compatible with io/fs?
The text was updated successfully, but these errors were encountered: