From 5fb6bdfa7efed25786011959f14d8af576c169f5 Mon Sep 17 00:00:00 2001 From: Callum Jones Date: Fri, 10 May 2019 23:27:23 +0100 Subject: [PATCH 1/2] update import paths --- README.md | 6 +++--- doc.go | 4 ++-- go.mod | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 98c993d..ca1242c 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # sessions -[![GoDoc](https://godoc.org/github.com/gorilla/sessions?status.svg)](https://godoc.org/github.com/gorilla/sessions) [![Build Status](https://travis-ci.org/gorilla/sessions.svg?branch=master)](https://travis-ci.org/gorilla/sessions) -[![Sourcegraph](https://sourcegraph.com/github.com/gorilla/sessions/-/badge.svg)](https://sourcegraph.com/github.com/gorilla/sessions?badge) +[![GoDoc](https://godoc.org/github.com/cj123/sessions?status.svg)](https://godoc.org/github.com/cj123/sessions) [![Build Status](https://travis-ci.org/gorilla/sessions.svg?branch=master)](https://travis-ci.org/gorilla/sessions) +[![Sourcegraph](https://sourcegraph.com/github.com/cj123/sessions/-/badge.svg)](https://sourcegraph.com/github.com/cj123/sessions?badge) gorilla/sessions provides cookie and filesystem sessions and infrastructure for custom session backends. @@ -24,7 +24,7 @@ Let's start with an example that shows the sessions API in a nutshell: ```go import ( "net/http" - "github.com/gorilla/sessions" + "github.com/cj123/sessions" ) // Note: Don't store your key in your source code. Pass it via an diff --git a/doc.go b/doc.go index 64f858c..df1f8c2 100644 --- a/doc.go +++ b/doc.go @@ -23,7 +23,7 @@ Let's start with an example that shows the sessions API in a nutshell: import ( "net/http" - "github.com/gorilla/sessions" + "github.com/cj123/sessions" ) // Note: Don't store your key in your source code. Pass it via an @@ -94,7 +94,7 @@ so it is easy to register new datatypes for storage in sessions: import( "encoding/gob" - "github.com/gorilla/sessions" + "github.com/cj123/sessions" ) type Person struct { diff --git a/go.mod b/go.mod index ea28ffe..a1a0de9 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/gorilla/sessions +module github.com/cj123/sessions require ( github.com/gorilla/context v1.1.1 From 68ff6c511b9a6621fa2fbcca5c2d50bcc2498feb Mon Sep 17 00:00:00 2001 From: Callum Jones Date: Fri, 10 May 2019 23:33:45 +0100 Subject: [PATCH 2/2] remove unneeded gorilla/context dependency --- go.mod | 5 +---- go.sum | 2 ++ 2 files changed, 3 insertions(+), 4 deletions(-) create mode 100644 go.sum diff --git a/go.mod b/go.mod index a1a0de9..f35f124 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,3 @@ module github.com/cj123/sessions -require ( - github.com/gorilla/context v1.1.1 - github.com/gorilla/securecookie v1.1.1 -) +require github.com/gorilla/securecookie v1.1.1 diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..e6a7ed5 --- /dev/null +++ b/go.sum @@ -0,0 +1,2 @@ +github.com/gorilla/securecookie v1.1.1 h1:miw7JPhV+b/lAHSXz4qd/nN9jRiAFV5FwjeKyCS8BvQ= +github.com/gorilla/securecookie v1.1.1/go.mod h1:ra0sb63/xPlUeL+yeDciTfxMRAA+MP+HVt/4epWDjd4=