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

🔥 Add PathPrefix parameter to filesystem middleware #1326

Merged
merged 1 commit into from
May 12, 2021
Merged

🔥 Add PathPrefix parameter to filesystem middleware #1326

merged 1 commit into from
May 12, 2021

Conversation

codemicro
Copy link
Contributor

@codemicro codemicro commented May 9, 2021

Resolves #1308

This adds a parameter called PathPrefix to filesystem.Config that is prepended to any filepath being read from filesystem.Root. This is intended to be used with Go 1.16's embed.FS.

A new test has been added to cater for this parameter, and the README has been updated to use this parameter in the section about embed.

:)

See #1308

This adds a parameter called `PathPrefix` to `filesystem.Config`
that is prepended to any filepath being read from
`filesystem.Root`.

Intended to be used with Go 1.16's `embed.FS` type.

Signed-off-by: Tom <tom@tdpain.net>
@ReneWerner87 ReneWerner87 merged commit 21c9fb4 into gofiber:master May 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🚀 Add option for filesystem prefix addition (for Go 1.16 embed)
2 participants