# grpc_go_examples **Repository Path**: walter80/grpc_go_examples ## Basic Information - **Project Name**: grpc_go_examples - **Description**: grpc go教程 - **Primary Language**: Go - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-04-07 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README https://grpc.io/docs/quickstart/go/ export GOPROXY=https://goproxy.cn echo 'export GOPROXY=https://goproxy.cn' >> ~/.zshrc source ~/.zshrc $ go get -u google.golang.org/grpc $ go get -u github.com/golang/protobuf/{proto,protoc-gen-go} $ protoc -I my_service --go_out=plugins=grpc:my_service myService.proto ✘  ~/go/src/grpc_go_examples/my_service_server  go run main.go Server started... (port=:50051) query=Wall ~/go/src/grpc_go_examples/my_service_client  go run main.go [Response] name:"Alice Wall" age:20 country:JAPAN hobby:"tennis" name:"Bobby Wall" age:33 country:CANADA hobby:"music" 已存在的文件夹或 Git 仓库 cd existing_folder git init git remote add origin git@gitee.com:walter80/grpc_go_examples.git git add . git commit git push -u origin master protoc -I helloworld/ helloworld/helloworld.proto --go_out=plugins=grpc:helloworld