gpt4 book ai didi

go - 使用常量初始化 gocql ips

转载 作者:数据小太阳 更新时间:2023-10-29 03:10:55 25 4
gpt4 key购买 nike

<分区>

我需要用多个 ips 初始化 gocql,我想从变量/常量传递 ips。

如何传递类似的东西

gocql.NewCluster(ipvalues)

而不是使用

gocql.NewCluster("127.0.0.1", "127.0.0.2")

我想通过类似于数组的变量传递 ips 列表。

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com