我需要用多个 ips 初始化 gocql,我想从变量/常量传递 ips。
如何传递类似的东西
gocql.NewCluster(ipvalues)
而不是使用
gocql.NewCluster("127.0.0.1", "127.0.0.2")
我想通过类似于数组的变量传递 ips 列表。
12345678_0001
相关分类