Install golang-github-ngaut-go-zookeeper-dev by entering the following commands in the terminal:
sudo apt update sudo apt install golang-github-ngaut-go-zookeeper-dev
Description:
Native ZooKeeper client for Go
This package provides a native ZooKeeper (client) library for communicating with ZooKeeper servers. . Example: func main() { c, _, err := zk.Connect([]string{"127.0.0.1"}, time.Second) //*10) if err != nil { panic(err) } children, stat, ch, err := c.ChildrenW("/") if err != nil { panic(err) } fmt.Printf("%+v %+v", children, stat) e := <-ch fmt.Printf("%+v", e) } . See also: https://godoc.org/github.com/samuel/go-zookeeper/zk
Homepage: https://github.com/ngaut/go-zookeeper
Version: 0.0~git20150813.0.9c3719e-5
Section: universe/devel