Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
zk
✓ github.com/samuel/go-zookeeper
Connects to ZooKeeper and lists root children.
package main
import (
"fmt"
"github.com/samuel/go-zookeeper/zk"
"time"
)
func main() {
conn, _, err := zk.Connect([]string{"localhost:2181"}, time.Second)
if err != nil {
panic(err)
}
defer conn.Close()
children, _, err := conn.Children("/")
if err != nil {
panic(err)
}
fmt.Println("Root children:", children)
}
Upgrade
Version history
0.0.0-20201211165307-7117e9ea2414latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.