Registry / web-framework / gin-contrib-location

gin-contrib-location

JSON →
library1.0.3gogounverified

Package location provides a Gin middleware for setting the Location header based on the request URL.

go get github.com/gin-contrib/location
INSTALL
IMPORT
SIG · GIN-CONTRIB-LOCATI
G
gin-contrib-location
web-frameworkgov1.0.3
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.

location
github.com/gin-contrib/location

Sets up the location middleware with a custom scheme and host.

package main import ( "github.com/gin-contrib/location" "github.com/gin-gonic/gin" ) func main() { r := gin.Default() r.Use(location.New(location.Config{ Scheme: "https", Host: "example.com", })) r.GET("/", func(c *gin.Context) { c.String(200, "Hello") }) r.Run() }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

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