File tree 6 files changed +5
-8
lines changed
examples/breadthfirsttraversal
6 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 9
9
10
10
## 📋 Requirements
11
11
12
- - Go 1.20 +
12
+ - Go 1.21 +
13
13
14
14
## 🚀 Install
15
15
Original file line number Diff line number Diff line change 1
1
package main
2
2
3
3
import (
4
+ "log/slog"
4
5
"os"
5
6
"time"
6
7
7
8
"github.com/libgox/addr"
8
9
"github.com/protocol-laboratory/zookeeper-client-go/zk"
9
- "golang.org/x/exp/slog"
10
10
)
11
11
12
12
func main () {
Original file line number Diff line number Diff line change 1
1
module github.com/protocol-laboratory/zookeeper-client-go
2
2
3
- go 1.20
3
+ go 1.21
4
4
5
5
require (
6
6
github.com/libgox/addr v0.2.0
7
7
github.com/libgox/buffer v0.1.0
8
8
github.com/stretchr/testify v1.9.0
9
- golang.org/x/exp v0.0.0-20240823005443-9b4947da3948
10
9
)
11
10
12
11
require (
Original file line number Diff line number Diff line change @@ -8,8 +8,6 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
8
8
github.com/pmezard/go-difflib v1.0.0 /go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4 =
9
9
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg =
10
10
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 =
13
11
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM =
14
12
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 /go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0 =
15
13
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA =
Original file line number Diff line number Diff line change @@ -3,14 +3,14 @@ package zk
3
3
import (
4
4
"crypto/tls"
5
5
"fmt"
6
+ "log/slog"
6
7
"math/rand"
7
8
"runtime"
8
9
"sync"
9
10
"sync/atomic"
10
11
"time"
11
12
12
13
"github.com/libgox/addr"
13
- "golang.org/x/exp/slog"
14
14
)
15
15
16
16
type Config struct {
Original file line number Diff line number Diff line change @@ -4,14 +4,14 @@ import (
4
4
"context"
5
5
"crypto/tls"
6
6
"fmt"
7
+ "log/slog"
7
8
"net"
8
9
"runtime"
9
10
"sync"
10
11
"time"
11
12
12
13
"github.com/libgox/addr"
13
14
"github.com/libgox/buffer"
14
- "golang.org/x/exp/slog"
15
15
)
16
16
17
17
type sendRequest struct {
You can’t perform that action at this time.
0 commit comments