1 Star 0 Fork 2

akidongzi / go-kit+grpc

forked from silves-xiang / go-kit+grpc 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
client.go 347 Bytes
一键复制 编辑 原始数据 按行查看 历史
silves-xiang 提交于 2021-04-03 17:06 . test
package main
import (
pb "bkgrpc/proto"
// "bkgrpc/services"
"context"
// "flag"
"fmt"
"google.golang.org/grpc"
// "time"
)
func main() {
ctx :=context.Background()
con,_:=grpc.Dial("127.0.0.1:80" , grpc.WithInsecure())
fu :=pb.NewStringServicesClient(con)
rep , _ :=fu.Diff(ctx , &pb.StringRequest{A: "a" , B: "b"})
fmt.Println(rep)
}
Go
1
https://gitee.com/lv_right/go-kit-grpc.git
git@gitee.com:lv_right/go-kit-grpc.git
lv_right
go-kit-grpc
go-kit+grpc
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891