Skip to content

Commit 9fc9d56

Browse files
authored
build: bump minimal required go version to 1.21 (#37)
1 parent 47373a5 commit 9fc9d56

File tree

6 files changed

+5
-8
lines changed

6 files changed

+5
-8
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
## 📋 Requirements
1111

12-
- Go 1.20+
12+
- Go 1.21+
1313

1414
## 🚀 Install
1515

examples/breadthfirsttraversal/breadth_first_traversal.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
package main
22

33
import (
4+
"log/slog"
45
"os"
56
"time"
67

78
"github.com/libgox/addr"
89
"github.com/protocol-laboratory/zookeeper-client-go/zk"
9-
"golang.org/x/exp/slog"
1010
)
1111

1212
func main() {

go.mod

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
module github.com/protocol-laboratory/zookeeper-client-go
22

3-
go 1.20
3+
go 1.21
44

55
require (
66
github.com/libgox/addr v0.2.0
77
github.com/libgox/buffer v0.1.0
88
github.com/stretchr/testify v1.9.0
9-
golang.org/x/exp v0.0.0-20240823005443-9b4947da3948
109
)
1110

1211
require (

go.sum

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
88
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
99
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
1010
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
11-
golang.org/x/exp v0.0.0-20240823005443-9b4947da3948 h1:kx6Ds3MlpiUHKj7syVnbp57++8WpuKPcR5yjLBjvLEA=
12-
golang.org/x/exp v0.0.0-20240823005443-9b4947da3948/go.mod h1:akd2r19cwCdwSwWeIdzYQGa/EZZyqcOdwWiwj5L5eKQ=
1311
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
1412
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
1513
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=

zk/client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ package zk
33
import (
44
"crypto/tls"
55
"fmt"
6+
"log/slog"
67
"math/rand"
78
"runtime"
89
"sync"
910
"sync/atomic"
1011
"time"
1112

1213
"github.com/libgox/addr"
13-
"golang.org/x/exp/slog"
1414
)
1515

1616
type Config struct {

zk/protocol_client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import (
44
"context"
55
"crypto/tls"
66
"fmt"
7+
"log/slog"
78
"net"
89
"runtime"
910
"sync"
1011
"time"
1112

1213
"github.com/libgox/addr"
1314
"github.com/libgox/buffer"
14-
"golang.org/x/exp/slog"
1515
)
1616

1717
type sendRequest struct {

0 commit comments

Comments
 (0)