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
I'm trying to use LoadModuleFromFilesystem on an FS object obtained from the embed package, but since that function uses a custom FS module I get the following error that the FS i supplied does not implement the custom FS:
cannot use fs (type fs.FS) as type tfconfig.FS in assignment:
fs.FS does not implement tfconfig.FS (wrong type for Open method)
have Open(string) (fs.File, error)
want Open(string) (tfconfig.File, error)
I wrote up a simple example showing what I'm trying to do. I also tested against an afero.FS and got the same result.
I'm trying to use
LoadModuleFromFilesystem
on an FS object obtained from the embed package, but since that function uses a custom FS module I get the following error that the FS i supplied does not implement the custom FS:I wrote up a simple example showing what I'm trying to do. I also tested against an afero.FS and got the same result.
The text was updated successfully, but these errors were encountered: