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
Use go:embed for embedding files instead of vfsgen #17352
Comments
only we will have to do some restucture of code as you can not embed files that are not in the same directory or in child directory where golang code is where you are embedding it. |
go:embed don't support |
Maybe symlink before build? |
We can add a small go file in those locations to grab the assets. |
Another thing to consider is that vfsgen provides the gzip versions of assets which we directly serve from the http server if the client indicates gzip support. I think it's crucial for performance to retain the option to serve pre-compiled gzip assets. Edit: See https://github.com/vearutop/statigz for one approach to solve it. I also maintain a JS module to generate |
Feature Description
Now that we have a minimum of go1.16 set, we can use go's embed functionality to embed templates/web assets (css/js), and translations.
Screenshots
No response
The text was updated successfully, but these errors were encountered: