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 have some static files that need to be downloaded, such as *.js or *.html, and I want to embed them in the go binary with StaticFS to simplify my deployment.
I would like to make StaticFS work with "go embed", but that is different from hertz's current design.
The function definition of StaticFS is func (group *RouterGroup) StaticFS(relativePath string, fs *app.FS) IRoutes . The app.FS is a struct not interface, I want to use fs.FS instead of it.
The text was updated successfully, but these errors were encountered:
welkeyever
added
the
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
label
Oct 27, 2022
I have some static files that need to be downloaded, such as
*.js
or*.html
, and I want to embed them in the go binary with StaticFS to simplify my deployment.I would like to make StaticFS work with "go embed", but that is different from hertz's current design.
The function definition of StaticFS is
func (group *RouterGroup) StaticFS(relativePath string, fs *app.FS) IRoutes
. Theapp.FS
is a struct not interface, I want to usefs.FS
instead of it.The text was updated successfully, but these errors were encountered: