diff --git a/README.md b/README.md index 6a12bcf..452e50c 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ ## 📋 Requirements -- Go 1.20+ +- Go 1.21+ ## 🚀 Install diff --git a/examples/breadthfirsttraversal/breadth_first_traversal.go b/examples/breadthfirsttraversal/breadth_first_traversal.go index fdd895e..2a863da 100644 --- a/examples/breadthfirsttraversal/breadth_first_traversal.go +++ b/examples/breadthfirsttraversal/breadth_first_traversal.go @@ -1,12 +1,12 @@ package main import ( + "log/slog" "os" "time" "github.com/libgox/addr" "github.com/protocol-laboratory/zookeeper-client-go/zk" - "golang.org/x/exp/slog" ) func main() { diff --git a/go.mod b/go.mod index 26915ec..e193f6e 100644 --- a/go.mod +++ b/go.mod @@ -1,12 +1,11 @@ module github.com/protocol-laboratory/zookeeper-client-go -go 1.20 +go 1.21 require ( github.com/libgox/addr v0.2.0 github.com/libgox/buffer v0.1.0 github.com/stretchr/testify v1.9.0 - golang.org/x/exp v0.0.0-20240823005443-9b4947da3948 ) require ( diff --git a/go.sum b/go.sum index 36f4a0c..56951f4 100644 --- a/go.sum +++ b/go.sum @@ -8,8 +8,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-20240823005443-9b4947da3948 h1:kx6Ds3MlpiUHKj7syVnbp57++8WpuKPcR5yjLBjvLEA= -golang.org/x/exp v0.0.0-20240823005443-9b4947da3948/go.mod h1:akd2r19cwCdwSwWeIdzYQGa/EZZyqcOdwWiwj5L5eKQ= 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= diff --git a/zk/client.go b/zk/client.go index 7920c4b..117c102 100644 --- a/zk/client.go +++ b/zk/client.go @@ -3,6 +3,7 @@ package zk import ( "crypto/tls" "fmt" + "log/slog" "math/rand" "runtime" "sync" @@ -10,7 +11,6 @@ import ( "time" "github.com/libgox/addr" - "golang.org/x/exp/slog" ) type Config struct { diff --git a/zk/protocol_client.go b/zk/protocol_client.go index 016a804..6e9244b 100644 --- a/zk/protocol_client.go +++ b/zk/protocol_client.go @@ -4,6 +4,7 @@ import ( "context" "crypto/tls" "fmt" + "log/slog" "net" "runtime" "sync" @@ -11,7 +12,6 @@ import ( "github.com/libgox/addr" "github.com/libgox/buffer" - "golang.org/x/exp/slog" ) type sendRequest struct {