Question

Gin: Deeply Rooted Static Files Not Loading

I have a gin application in which not all the static files load. Deeply rooted static files do not load.

Static file path

<^>

repository

    assets

       project_1

         css/style.css

         vendor/aos/bootstrap

<^>

Files in the **aos ** folder do not load, but files in the **css ** folder load. I have tried router.Static(“/asset”, “./repository/assets”) but it does not work.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer