From bb83ae2bdf3d1f831830af70383273c972cf2a78 Mon Sep 17 00:00:00 2001 From: Ammar Bandukwala Date: Thu, 11 Jan 2024 15:00:54 -0600 Subject: [PATCH] Update import path --- README.md | 29 +++++++++++++++-------------- bench/get_test.go | 2 +- bench/go.mod | 6 +++--- client_test.go | 4 ++-- go.mod | 2 +- redcache/cache.go | 2 +- redcache/cache_test.go | 2 +- redtest/server.go | 2 +- 8 files changed, 25 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 90e7edd..844ad4c 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # redjet -[![Go Reference](https://pkg.go.dev/badge/github.com/ammario/redjet.svg)](https://pkg.go.dev/github.com/ammario/redjet) -![ci](https://github.com/ammario/redjet/actions/workflows/ci.yaml/badge.svg) -[![Coverage Status](https://coveralls.io/repos/github/ammario/redjet/badge.svg)](https://coveralls.io/github/ammario/redjet) -[![Go Report Card](https://goreportcard.com/badge/github.com/ammario/redjet)](https://goreportcard.com/report/github.com/ammario/redjet) +[![Go Reference](https://pkg.go.dev/badge/github.com/coder/redjet.svg)](https://pkg.go.dev/github.com/coder/redjet) +![ci](https://github.com/coder/redjet/actions/workflows/ci.yaml/badge.svg) +[![Coverage Status](https://coveralls.io/repos/github/coder/redjet/badge.svg)](https://coveralls.io/github/coder/redjet) +[![Go Report Card](https://goreportcard.com/badge/github.com/coder/redjet)](https://goreportcard.com/report/github.com/coder/redjet) @@ -23,14 +23,15 @@ is really a Pipeline of size 1. **Table of Contents** -- [Basic Usage](#basic-usage) -- [Streaming](#streaming) -- [Pipelining](#pipelining) -- [PubSub](#pubsub) -- [JSON](#json) -- [Connection Pooling](#connection-pooling) -- [Benchmarks](#benchmarks) -- [Limitations](#limitations) +- [redjet](#redjet) + - [Basic Usage](#basic-usage) + - [Streaming](#streaming) + - [Pipelining](#pipelining) + - [PubSub](#pubsub) + - [JSON](#json) + - [Connection Pooling](#connection-pooling) + - [Benchmarks](#benchmarks) + - [Limitations](#limitations) @@ -39,7 +40,7 @@ is really a Pipeline of size 1. Install: ```bash -go get github.com/ammario/redjet@latest +go get github.com/coder/redjet@latest ``` For the most part, you can interact with Redis using a familiar interface: @@ -52,7 +53,7 @@ import ( "fmt" "log" - "github.com/ammario/redjet" + "github.com/coder/redjet" ) func main() { diff --git a/bench/get_test.go b/bench/get_test.go index bc80c2c..e01b55c 100644 --- a/bench/get_test.go +++ b/bench/get_test.go @@ -12,7 +12,7 @@ import ( "testing" "time" - "github.com/ammario/redjet" + "github.com/coder/redjet" "github.com/dustin/go-humanize" redigo "github.com/gomodule/redigo/redis" goredis "github.com/redis/go-redis/v9" diff --git a/bench/go.mod b/bench/go.mod index 4ef89a8..2198337 100644 --- a/bench/go.mod +++ b/bench/go.mod @@ -1,4 +1,4 @@ -module github.com/ammario/redjet/bench +module github.com/coder/redjet/bench go 1.20 @@ -6,11 +6,11 @@ go 1.20 // the main package with other Redis library dependencies. require ( - github.com/ammario/redjet v0.0.0-20230703191230-a607112e096c + github.com/coder/redjet v0.0.0-20230703191230-a607112e096c github.com/stretchr/testify v1.8.4 ) -replace github.com/ammario/redjet => ../ +replace github.com/coder/redjet => ../ require ( github.com/cespare/xxhash/v2 v2.2.0 // indirect diff --git a/client_test.go b/client_test.go index 547d8a2..0f86dfd 100644 --- a/client_test.go +++ b/client_test.go @@ -12,8 +12,8 @@ import ( "testing" "time" - "github.com/ammario/redjet" - "github.com/ammario/redjet/redtest" + "github.com/coder/redjet" + "github.com/coder/redjet/redtest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "go.uber.org/goleak" diff --git a/go.mod b/go.mod index de44110..2b95c01 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/ammario/redjet +module github.com/coder/redjet go 1.20 diff --git a/redcache/cache.go b/redcache/cache.go index d4f095e..57e7512 100644 --- a/redcache/cache.go +++ b/redcache/cache.go @@ -7,7 +7,7 @@ import ( "fmt" "time" - "github.com/ammario/redjet" + "github.com/coder/redjet" ) // Cache is a simple cache implementation using Redis as a backend. diff --git a/redcache/cache_test.go b/redcache/cache_test.go index c141a8a..99ad3a9 100644 --- a/redcache/cache_test.go +++ b/redcache/cache_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - "github.com/ammario/redjet/redtest" + "github.com/coder/redjet/redtest" "github.com/stretchr/testify/require" ) diff --git a/redtest/server.go b/redtest/server.go index 473e099..5c5a48d 100644 --- a/redtest/server.go +++ b/redtest/server.go @@ -13,7 +13,7 @@ import ( "testing" "time" - "github.com/ammario/redjet" + "github.com/coder/redjet" "github.com/stretchr/testify/require" )