Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work with http.FileServerFS #25

Open
karelbilek opened this issue Apr 17, 2024 · 1 comment
Open

Doesn't work with http.FileServerFS #25

karelbilek opened this issue Apr 17, 2024 · 1 comment

Comments

@karelbilek
Copy link

Title says it all. It doesn't work with http.FileServerFS

Note that this is said by the docs:

The files provided by fsys must implement io.Seeker.

I guess this filesystem doesn't.

@karelbilek
Copy link
Author

karelbilek commented Apr 18, 2024

It seems afero's NewMemMapFs is better for that, as it implements everything

https://pkg.go.dev/github.com/spf13/afero#section-readme

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant