Description

Dir returns a http.Filesystem that can be used by http.FileServer(). It is used interally in router.Static(). if listDirectory == true, then it works the same as http.Dir() otherwise it returns a filesystem that prevents http.FileServer() to list the directory files.

Dir is referenced in 4 repositories

github.com/gin-gonic/gin github.com/gin-gonic/contrib github.com/turtlemonvh/blanket-api

...