Documentation ¶
Index ¶
Constants ¶
View Source
const INDEX = "index.html"
Variables ¶
This section is empty.
Functions ¶
func New ¶ added in v0.2.3
func New(urlPrefix string, fs ServeFileSystem) gin.HandlerFunc
New Static returns a middleware handler that serves static files in the given directory.
func NewRoot ¶ added in v0.2.3
func NewRoot(urlPrefix, root string) gin.HandlerFunc
Types ¶
type ServeFileSystem ¶
type ServeFileSystem interface { http.FileSystem Exists(prefix string, path string) bool }
Click to show internal directories.
Click to hide internal directories.