grpc-restful
grpc-restful copied to clipboard
gRPC gateway example.
你好,如标题
是版本问题吗?
(ftpman) hary@gardenia:~/tmp/grpc-restful$ goctl env check -v [goctl-env]: preparing to check env [goctl-env]: looking up "protoc" [goctl-env]: "protoc" is installed [goctl-env]: looking up "protoc-gen-go" [goctl-env]: "protoc-gen-go" is installed [goctl-env]: looking up...
环境: centos7 go 版本: go1.19.2.linux-amd64 goctl版本:1.4.1 执行命令:goctl rpc protoc --go_out=. --go-grpc_out=. --zrpc_out=. sum.proto 报错信息: google/protobuf/descriptor.proto: File not found. google/api/annotations.proto:20:1: Import "google/protobuf/descriptor.proto" was not found or had errors. google/api/annotations.proto:24:8: "google.protobuf.MethodOptions" is...
clone 项目后,go run sum.go启动,新窗口执行curl: ``` curl -d '{"a":2,"b":3}' -H 'Content-Type: application/json' localhost:8081/v1/sum ``` go 的版本在 1.17 时,是请求成功的:  但是在 1.20 下,请求失败:  请问在go1.20版本下,该怎么处理或兼容一下? 在使用go1.18后,启动还有一个报错: ``` error: config file etc/user.yaml, duplicated...
我的生成命令如下 ```shell protoc --include_imports --proto_path=. --descriptor_set_out=sum.pb sum.proto --go_out=./ sum.proto ``` 生成文件关键信息如下 ```go // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.0 // protoc v3.14.0 // source:...
访问后 :404 page not found