From 5d5eb723501a8dd08e842c498bd3279bc37a99fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Gr=C3=A4ger?= Date: Wed, 7 Feb 2024 10:29:58 +0100 Subject: [PATCH] Remove sumup/x references --- README.md | 2 +- benchmark/go.mod | 4 ++-- benchmark/go.sum | 4 ++-- doc.go | 2 +- go.mod | 3 ++- go.sum | 2 -- random.go | 2 +- sortable.go | 2 +- 8 files changed, 10 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index f9c1bea..7c579cc 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ prefix type as generic argument. Example: ```go -import "github.com/sumup/x/typeid" +import "github.com/sumup/typeid" type UserPrefix struct{} diff --git a/benchmark/go.mod b/benchmark/go.mod index f98faae..4ba4839 100644 --- a/benchmark/go.mod +++ b/benchmark/go.mod @@ -5,12 +5,12 @@ go 1.21.6 toolchain go1.21.7 require ( - github.com/sumup/x v0.0.0-20240205105019-4312e7701e82 + github.com/sumup/typeid v0.0.0-20240207092642-41beee9e90e1 go.jetpack.io/typeid v1.0.0 ) require ( github.com/gofrs/uuid/v5 v5.0.0 // indirect github.com/jackc/pgx/v5 v5.5.3 // indirect - github.com/sumup/typeid v0.0.0-20240206140246-59779c927c60 // indirect + github.com/sumup/x v0.0.0-20240205105019-4312e7701e82 // indirect ) diff --git a/benchmark/go.sum b/benchmark/go.sum index 1069167..d687bf7 100644 --- a/benchmark/go.sum +++ b/benchmark/go.sum @@ -14,8 +14,8 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/sumup/typeid v0.0.0-20240206140246-59779c927c60 h1:mH1bfCjvzAvzo+GVfTzPpwkjy2NIQTz1w8N4/GTs9Pk= -github.com/sumup/typeid v0.0.0-20240206140246-59779c927c60/go.mod h1:kNiEBvBXdQGyx5+BSaKzzzVrDsIKQz5q3mvEy18xrNw= +github.com/sumup/typeid v0.0.0-20240207092642-41beee9e90e1 h1:4GBScWKBzDweSl1jEGQUQE6Z1qaY2zAQuwQZYQGMY+Q= +github.com/sumup/typeid v0.0.0-20240207092642-41beee9e90e1/go.mod h1:TZ3tTJmzUEzTTThrBwkHpLYTIm4c8u3/zxTqoT/8uYk= github.com/sumup/x v0.0.0-20240205105019-4312e7701e82 h1:LRJWRUng6h6FXpArj53PTP9ScZXyVcGUvE2FEuM7hHs= github.com/sumup/x v0.0.0-20240205105019-4312e7701e82/go.mod h1:GMY9EAQMiLm5mIEYBUoAsuC8SuOrqCu6D88zTikS5Xo= go.jetpack.io/typeid v1.0.0 h1:8gQ+iYGdyiQ0Pr40ydSB/PzMOIwlXX5DTojp1CBeSPQ= diff --git a/doc.go b/doc.go index a6ae532..9014ec6 100644 --- a/doc.go +++ b/doc.go @@ -27,7 +27,7 @@ // // Example: // -// import "github.com/sumup/x/typeid" +// import "github.com/sumup/typeid" // // type UserPrefix struct{} // diff --git a/go.mod b/go.mod index fd1eeeb..fca8cd8 100644 --- a/go.mod +++ b/go.mod @@ -8,7 +8,6 @@ require ( github.com/gofrs/uuid/v5 v5.0.0 github.com/jackc/pgx/v5 v5.5.3 github.com/stretchr/testify v1.8.4 - github.com/sumup/x v0.0.0-20240205105019-4312e7701e82 ) require ( @@ -16,5 +15,7 @@ require ( github.com/kr/text v0.2.0 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/rogpeppe/go-internal v1.11.0 // indirect + golang.org/x/crypto v0.18.0 // indirect + golang.org/x/sync v0.5.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index 98c5278..20ef882 100644 --- a/go.sum +++ b/go.sum @@ -21,8 +21,6 @@ github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDN github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/sumup/x v0.0.0-20240205105019-4312e7701e82 h1:LRJWRUng6h6FXpArj53PTP9ScZXyVcGUvE2FEuM7hHs= -github.com/sumup/x v0.0.0-20240205105019-4312e7701e82/go.mod h1:GMY9EAQMiLm5mIEYBUoAsuC8SuOrqCu6D88zTikS5Xo= golang.org/x/crypto v0.18.0 h1:PGVlW0xEltQnzFZ55hkuX5+KLyrMYhHld1YHO4AKcdc= golang.org/x/crypto v0.18.0/go.mod h1:R0j02AL6hcrfOiy9T4ZYp/rcWeMxM3L6QYxlOuEG1mg= golang.org/x/sync v0.5.0 h1:60k92dhOjHxJkrqnwsfl8KuaHbn/5dl0lUPUklKo3qE= diff --git a/random.go b/random.go index 7c0e645..97ddf51 100644 --- a/random.go +++ b/random.go @@ -5,7 +5,7 @@ import ( "github.com/gofrs/uuid/v5" "github.com/jackc/pgx/v5/pgtype" - "github.com/sumup/x/typeid/base32" + "github.com/sumup/typeid/base32" ) // Random represents an unique identifier that is entirely random. diff --git a/sortable.go b/sortable.go index 88dac10..1459fc4 100644 --- a/sortable.go +++ b/sortable.go @@ -5,7 +5,7 @@ import ( "github.com/gofrs/uuid/v5" "github.com/jackc/pgx/v5/pgtype" - "github.com/sumup/x/typeid/base32" + "github.com/sumup/typeid/base32" ) // Sortable represents an unique identifier that is k-sortable.