From 65e176720b2757a6272cb35c47de57590c722b8f Mon Sep 17 00:00:00 2001 From: Vivek R Date: Sat, 1 Jun 2024 14:00:38 +0530 Subject: [PATCH] fix: rename modules to zerodha/simplesessions --- .github/workflows/test.yml | 4 ++-- README.md | 6 +++--- examples/fastglue-redis/main.go | 4 ++-- examples/fasthttp-inmemory/main.go | 4 ++-- examples/fasthttp-redis/main.go | 4 ++-- examples/go.mod | 18 +++++++++--------- examples/nethttp-inmemory/main.go | 4 ++-- examples/nethttp-redis/main.go | 4 ++-- examples/nethttp-secure-cookie/main.go | 4 ++-- go.mod | 2 +- stores/memory/go.mod | 2 +- stores/postgres/go.mod | 2 +- stores/redis/go.mod | 2 +- stores/securecookie/go.mod | 2 +- 14 files changed, 31 insertions(+), 31 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 74bab5c..429e716 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,14 +14,14 @@ jobs: name: Go ${{ matrix.go }} Tests steps: - uses: actions/checkout@v3 - + - name: Setup Go uses: actions/setup-go@v3 with: go-version: ${{ matrix.go }} - name: Run all tests - run: go test -v github.com/vividvilla/simplesessions... + run: go test -v github.com/zerodha/simplesessions... - name: Run Coverage run: go test -v -cover ./... diff --git a/README.md b/README.md index ae64654..6e30ffd 100644 --- a/README.md +++ b/README.md @@ -16,11 +16,11 @@ Most session libraries are highly opinionated and hard-wired to work with `net/h Install `simplesessions` and all [available stores](/stores). ```shell -go get -u github.com/vividvilla/simplesessions/v3 +go get -u github.com/zerodha/simplesessions/v3 # Install the requrired store: memory|redis|postgres|securecookie -go get -u github.com/vividvilla/simplesessions/v3/stores/redis -go get -u github.com/vividvilla/simplesessions/v3/stores/postgres +go get -u github.com/zerodha/simplesessions/v3/stores/redis +go get -u github.com/zerodha/simplesessions/v3/stores/postgres ``` # Stores diff --git a/examples/fastglue-redis/main.go b/examples/fastglue-redis/main.go index 4066d6e..42dfb1f 100644 --- a/examples/fastglue-redis/main.go +++ b/examples/fastglue-redis/main.go @@ -8,9 +8,9 @@ import ( "github.com/redis/go-redis/v9" "github.com/valyala/fasthttp" - redisstore "github.com/vividvilla/simplesessions/stores/redis/v3" - "github.com/vividvilla/simplesessions/v3" "github.com/zerodha/fastglue" + redisstore "github.com/zerodha/simplesessions/stores/redis/v3" + "github.com/zerodha/simplesessions/v3" ) const ( diff --git a/examples/fasthttp-inmemory/main.go b/examples/fasthttp-inmemory/main.go index ba50f17..7ff76d5 100644 --- a/examples/fasthttp-inmemory/main.go +++ b/examples/fasthttp-inmemory/main.go @@ -5,8 +5,8 @@ import ( "net/http" "github.com/valyala/fasthttp" - "github.com/vividvilla/simplesessions/stores/memory/v3" - "github.com/vividvilla/simplesessions/v3" + "github.com/zerodha/simplesessions/stores/memory/v3" + "github.com/zerodha/simplesessions/v3" ) var ( diff --git a/examples/fasthttp-redis/main.go b/examples/fasthttp-redis/main.go index 617af78..6dc6453 100644 --- a/examples/fasthttp-redis/main.go +++ b/examples/fasthttp-redis/main.go @@ -9,8 +9,8 @@ import ( "github.com/redis/go-redis/v9" "github.com/valyala/fasthttp" - redisstore "github.com/vividvilla/simplesessions/stores/redis/v3" - "github.com/vividvilla/simplesessions/v3" + redisstore "github.com/zerodha/simplesessions/stores/redis/v3" + "github.com/zerodha/simplesessions/v3" ) var ( diff --git a/examples/go.mod b/examples/go.mod index 41c3e54..3ffe704 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -1,14 +1,14 @@ -module github.com/vividvilla/simplesessions/examples +module github.com/zerodha/simplesessions/examples go 1.18 require ( github.com/redis/go-redis/v9 v9.5.1 github.com/valyala/fasthttp v1.44.0 - github.com/vividvilla/simplesessions/stores/memory/v3 v3.0.0 - github.com/vividvilla/simplesessions/stores/redis/v3 v3.0.0 - github.com/vividvilla/simplesessions/stores/securecookie/v3 v3.0.0 - github.com/vividvilla/simplesessions/v3 v3.0.0 + github.com/zerodha/simplesessions/stores/memory/v3 v3.0.0 + github.com/zerodha/simplesessions/stores/redis/v3 v3.0.0 + github.com/zerodha/simplesessions/stores/securecookie/v3 v3.0.0 + github.com/zerodha/simplesessions/v3 v3.0.0 github.com/zerodha/fastglue v1.8.0 ) @@ -28,8 +28,8 @@ require ( ) replace ( - github.com/vividvilla/simplesessions/stores/memory/v3 => ../stores/memory - github.com/vividvilla/simplesessions/stores/redis/v3 => ../stores/redis - github.com/vividvilla/simplesessions/stores/securecookie/v3 => ../stores/securecookie - github.com/vividvilla/simplesessions/v3 => ../ + github.com/zerodha/simplesessions/stores/memory/v3 => ../stores/memory + github.com/zerodha/simplesessions/stores/redis/v3 => ../stores/redis + github.com/zerodha/simplesessions/stores/securecookie/v3 => ../stores/securecookie + github.com/zerodha/simplesessions/v3 => ../ ) diff --git a/examples/nethttp-inmemory/main.go b/examples/nethttp-inmemory/main.go index d79bed9..014c498 100644 --- a/examples/nethttp-inmemory/main.go +++ b/examples/nethttp-inmemory/main.go @@ -5,8 +5,8 @@ import ( "log" "net/http" - "github.com/vividvilla/simplesessions/stores/memory/v3" - "github.com/vividvilla/simplesessions/v3" + "github.com/zerodha/simplesessions/stores/memory/v3" + "github.com/zerodha/simplesessions/v3" ) var ( diff --git a/examples/nethttp-redis/main.go b/examples/nethttp-redis/main.go index e2d525b..81c6d00 100644 --- a/examples/nethttp-redis/main.go +++ b/examples/nethttp-redis/main.go @@ -8,8 +8,8 @@ import ( "time" "github.com/redis/go-redis/v9" - redisstore "github.com/vividvilla/simplesessions/stores/redis/v3" - "github.com/vividvilla/simplesessions/v3" + redisstore "github.com/zerodha/simplesessions/stores/redis/v3" + "github.com/zerodha/simplesessions/v3" ) var ( diff --git a/examples/nethttp-secure-cookie/main.go b/examples/nethttp-secure-cookie/main.go index 3999476..7cc091a 100644 --- a/examples/nethttp-secure-cookie/main.go +++ b/examples/nethttp-secure-cookie/main.go @@ -5,8 +5,8 @@ import ( "log" "net/http" - "github.com/vividvilla/simplesessions/stores/securecookie/v3" - "github.com/vividvilla/simplesessions/v3" + "github.com/zerodha/simplesessions/stores/securecookie/v3" + "github.com/zerodha/simplesessions/v3" ) var ( diff --git a/go.mod b/go.mod index 49d9411..7a1968a 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/vividvilla/simplesessions/v3 +module github.com/zerodha/simplesessions/v3 require github.com/stretchr/testify v1.9.0 diff --git a/stores/memory/go.mod b/stores/memory/go.mod index 1936154..1f6a7b6 100644 --- a/stores/memory/go.mod +++ b/stores/memory/go.mod @@ -1,4 +1,4 @@ -module github.com/vividvilla/simplesessions/stores/memory/v3 +module github.com/zerodha/simplesessions/stores/memory/v3 go 1.18 diff --git a/stores/postgres/go.mod b/stores/postgres/go.mod index bb46336..bf58efa 100644 --- a/stores/postgres/go.mod +++ b/stores/postgres/go.mod @@ -1,4 +1,4 @@ -module github.com/vividvilla/simplesessions/stores/postgres/v3 +module github.com/zerodha/simplesessions/stores/postgres/v3 go 1.18 diff --git a/stores/redis/go.mod b/stores/redis/go.mod index 3779bde..655bd44 100644 --- a/stores/redis/go.mod +++ b/stores/redis/go.mod @@ -1,4 +1,4 @@ -module github.com/vividvilla/simplesessions/stores/redis/v3 +module github.com/zerodha/simplesessions/stores/redis/v3 go 1.18 diff --git a/stores/securecookie/go.mod b/stores/securecookie/go.mod index 413de4f..4e053a2 100644 --- a/stores/securecookie/go.mod +++ b/stores/securecookie/go.mod @@ -1,4 +1,4 @@ -module github.com/vividvilla/simplesessions/stores/securecookie/v3 +module github.com/zerodha/simplesessions/stores/securecookie/v3 go 1.18