consulcli
Connect to the consul service client.
Example of use
import "github.com/zhufuyi/sponge/pkg/consulcli"
endpoints := []string{"192.168.3.37:2379"}
cli, err := consulcli.Init(endpoints,
WithConnectTimeout(time.Second*2),
// WithAuth("", ""),
// WithAutoSyncInterval(0),
// WithLog(zap.NewNop()),
)