64 Star 199 Fork 81

cloudzone/smartgo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
client_config_test.go 444 Bytes
一键复制 编辑 原始数据 按行查看 历史
package stgclient
import (
"fmt"
"testing"
)
// TestNewClientConfig producer和consumer公共配置
// Author: yintongqiang
// Since: 2017/8/8
func TestNewClientConfig(t *testing.T) {
clientConfig := NewClientConfig("127.0.0.1:9876")
fmt.Println(clientConfig.InstanceName)
fmt.Println(clientConfig.ClientIP)
clientConfig.ChangeInstanceNameToPID()
fmt.Println(clientConfig.InstanceName)
fmt.Println(clientConfig.BuildMQClientId())
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/cloudzone/smartgo.git
git@gitee.com:cloudzone/smartgo.git
cloudzone
smartgo
smartgo
dev

搜索帮助