Skip to content

Commit

Permalink
feat: refactor README and location files
Browse files Browse the repository at this point in the history
- Remove the gitter chat badge from the README.md file
- Add a new struct called Headers in the location.go file

Signed-off-by: Bo-Yi Wu <[email protected]>
  • Loading branch information
appleboy committed Sep 8, 2023
1 parent 9138b26 commit 034c1cd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
[![codecov](https://codecov.io/gh/gin-contrib/location/branch/master/graph/badge.svg)](https://codecov.io/gh/gin-contrib/location)
[![Go Report Card](https://goreportcard.com/badge/github.com/gin-contrib/location)](https://goreportcard.com/report/github.com/gin-contrib/location)
[![GoDoc](https://godoc.org/github.com/gin-contrib/location?status.svg)](https://godoc.org/github.com/gin-contrib/location)
[![Join the chat at https://gitter.im/gin-gonic/gin](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/gin-gonic/gin)

This Gin middleware can be used to automatically find and expose the server's
hostname and scheme by inspecting information in the incoming `http.Request`.
Expand Down
1 change: 1 addition & 0 deletions location.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (

const key = "location"

// Headers represents the header fields used to map schemes and host.
type Headers struct {
Scheme string
Host string
Expand Down

0 comments on commit 034c1cd

Please sign in to comment.