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