From cc6f935ba6b39b329e9ff04674dcea32328999a0 Mon Sep 17 00:00:00 2001 From: Guido Zuidhof Date: Wed, 20 Nov 2024 16:57:02 +0100 Subject: [PATCH] Remove dependency to support Go `1.18` --- example/stress/main.go | 3 ++- go.mod | 9 ++------- go.sum | 2 -- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/example/stress/main.go b/example/stress/main.go index 6e2dc1c..78bcf99 100644 --- a/example/stress/main.go +++ b/example/stress/main.go @@ -7,8 +7,9 @@ import ( "sync" "time" + "math/rand" + "github.com/friendlycaptcha/batchman" - "golang.org/x/exp/rand" ) func main() { diff --git a/go.mod b/go.mod index 1f03254..fad63e3 100644 --- a/go.mod +++ b/go.mod @@ -1,13 +1,8 @@ module github.com/friendlycaptcha/batchman -go 1.22 +go 1.18 -toolchain go1.22 - -require ( - github.com/stretchr/testify v1.9.0 - golang.org/x/exp v0.0.0-20241108190413-2d47ceb2692f -) +require github.com/stretchr/testify v1.9.0 require ( github.com/davecgh/go-spew v1.1.1 // indirect diff --git a/go.sum b/go.sum index b5ee555..60ce688 100644 --- a/go.sum +++ b/go.sum @@ -4,8 +4,6 @@ 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.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -golang.org/x/exp v0.0.0-20241108190413-2d47ceb2692f h1:XdNn9LlyWAhLVp6P/i8QYBW+hlyhrhei9uErw2B5GJo= -golang.org/x/exp v0.0.0-20241108190413-2d47ceb2692f/go.mod h1:D5SMRVC3C2/4+F/DB1wZsLRnSNimn2Sp/NPsCrsv8ak= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=