Skip to content

Commit d9e9f19

Browse files
committed
Unarchive the Fork #1
Signed-off-by: Bhargav Ravuri <vaguecoder0to.n@gmail.com>
1 parent eb99d7a commit d9e9f19

File tree

6 files changed

+19
-17
lines changed

6 files changed

+19
-17
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
default: ""
1818
docker:
1919
- image: "circleci/golang:<< parameters.version >>"
20-
working_directory: /go/src/github.com/gorilla/mux
20+
working_directory: /go/src/github.com/vaguecoder/gorilla-mux
2121
environment:
2222
GO111MODULE: "on"
2323
GOPROXY: "<< parameters.goproxy >>"

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# gorilla/mux
1+
# Gorilla Mux
22

3-
[![GoDoc](https://godoc.org/github.com/gorilla/mux?status.svg)](https://godoc.org/github.com/gorilla/mux)
3+
[![GoDoc](https://godoc.org/github.com/vaguecoder/gorilla-mux?status.svg)](https://godoc.org/github.com/vaguecoder/gorilla-mux)
44
[![CircleCI](https://circleci.com/gh/gorilla/mux.svg?style=svg)](https://circleci.com/gh/gorilla/mux)
5-
[![Sourcegraph](https://sourcegraph.com/github.com/gorilla/mux/-/badge.svg)](https://sourcegraph.com/github.com/gorilla/mux?badge)
5+
[![Sourcegraph](https://sourcegraph.com/github.com/vaguecoder/gorilla-mux/-/badge.svg)](https://sourcegraph.com/github.com/vaguecoder/gorilla-mux?badge)
66

77
![Gorilla Logo](https://cloud-cdn.questionable.services/gorilla-icon-64.png)
88

99
---
1010

11-
**The Gorilla project has been archived, and is no longer under active maintainenance. You can read more here: https://github.com/gorilla#gorilla-toolkit**
11+
Just a fork of the https://github.com/gorilla/mux project since it is archived. Who knows what might come in handy?
1212

1313
---
1414

@@ -45,7 +45,7 @@ The name mux stands for "HTTP request multiplexer". Like the standard `http.Serv
4545
With a [correctly configured](https://golang.org/doc/install#testing) Go toolchain:
4646

4747
```sh
48-
go get -u github.com/gorilla/mux
48+
go get -u github.com/vaguecoder/gorilla-mux
4949
```
5050

5151
## Examples
@@ -234,7 +234,7 @@ import (
234234
"path/filepath"
235235
"time"
236236

237-
"github.com/gorilla/mux"
237+
mux "github.com/vaguecoder/gorilla-mux"
238238
)
239239

240240
// spaHandler implements the http.Handler interface, so we can use it
@@ -392,7 +392,7 @@ import (
392392
"net/http"
393393
"strings"
394394

395-
"github.com/gorilla/mux"
395+
mux "github.com/vaguecoder/gorilla-mux"
396396
)
397397

398398
func handler(w http.ResponseWriter, r *http.Request) {
@@ -455,7 +455,7 @@ import (
455455
"os/signal"
456456
"time"
457457

458-
"github.com/gorilla/mux"
458+
mux "github.com/vaguecoder/gorilla-mux"
459459
)
460460

461461
func main() {
@@ -506,7 +506,7 @@ func main() {
506506

507507
### Middleware
508508

509-
Mux supports the addition of middlewares to a [Router](https://godoc.org/github.com/gorilla/mux#Router), which are executed in the order they are added if a match is found, including its subrouters.
509+
Mux supports the addition of middlewares to a [Router](https://godoc.org/github.com/vaguecoder/gorilla-mux#Router), which are executed in the order they are added if a match is found, including its subrouters.
510510
Middlewares are (typically) small pieces of code which take one request, do something with it, and pass it down to another middleware or the final handler. Some common use cases for middleware are request logging, header manipulation, or `ResponseWriter` hijacking.
511511

512512
Mux middlewares are defined using the de facto standard type:
@@ -586,7 +586,7 @@ Note: The handler chain will be stopped if your middleware doesn't call `next.Se
586586

587587
### Handling CORS Requests
588588

589-
[CORSMethodMiddleware](https://godoc.org/github.com/gorilla/mux#CORSMethodMiddleware) intends to make it easier to strictly set the `Access-Control-Allow-Methods` response header.
589+
[CORSMethodMiddleware](https://godoc.org/github.com/vaguecoder/gorilla-mux#CORSMethodMiddleware) intends to make it easier to strictly set the `Access-Control-Allow-Methods` response header.
590590

591591
* You will still need to use your own CORS handler to set the other CORS headers such as `Access-Control-Allow-Origin`
592592
* The middleware will set the `Access-Control-Allow-Methods` header to all the method matchers (e.g. `r.Methods(http.MethodGet, http.MethodPut, http.MethodOptions)` -> `Access-Control-Allow-Methods: GET,PUT,OPTIONS`) on a route
@@ -600,7 +600,7 @@ package main
600600

601601
import (
602602
"net/http"
603-
"github.com/gorilla/mux"
603+
mux "github.com/vaguecoder/gorilla-mux"
604604
)
605605

606606
func main() {
@@ -787,7 +787,7 @@ package main
787787
import (
788788
"net/http"
789789
"log"
790-
"github.com/gorilla/mux"
790+
mux "github.com/vaguecoder/gorilla-mux"
791791
)
792792
793793
func YourHandler(w http.ResponseWriter, r *http.Request) {

example_authentication_middleware_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"log"
55
"net/http"
66

7-
"github.com/gorilla/mux"
7+
mux "github.com/vaguecoder/gorilla-mux"
88
)
99

1010
// Define our struct

example_cors_method_middleware_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"net/http"
66
"net/http/httptest"
77

8-
"github.com/gorilla/mux"
8+
mux "github.com/vaguecoder/gorilla-mux"
99
)
1010

1111
func ExampleCORSMethodMiddleware() {

example_route_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"net/http"
66

7-
"github.com/gorilla/mux"
7+
mux "github.com/vaguecoder/gorilla-mux"
88
)
99

1010
// This example demonstrates setting a regular expression matcher for

go.mod

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
module github.com/gorilla/mux
1+
module github.com/vaguecoder/gorilla-mux
22

33
go 1.12
4+
5+
replace github.com/gorilla/mux => github.com/vaguecoder/gorilla-mux v0.0.0

0 commit comments

Comments
 (0)