Registry / web-framework / gin-contrib-static

gin-contrib-static

JSON →
library1.1.6gogounverified

Package static provides a middleware for serving static files in the Gin web framework.

go get github.com/gin-contrib/static
INSTALL
IMPORT
SIG · GIN-CONTRIB-STATIC
G
gin-contrib-static
web-frameworkgov1.1.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

static
github.com/gin-contrib/static

Serve static files from the ./public directory using Gin.

package main import ( "github.com/gin-gonic/gin" "github.com/gin-contrib/static" ) func main() { r := gin.Default() r.Use(static.Serve("/", static.LocalFile("./public", false))) r.Run() }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.6latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
gin-contrib-static — go get gin-contrib-static · libregistry