Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed readmeurls #20

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.vscode/
1 change: 1 addition & 0 deletions golang/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ protoc-3.11.4-linux-x86_64/

# Exclude Protobuf-generated Golang sources
*.pb.go
.vscode/
4 changes: 2 additions & 2 deletions golang/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ and running, you could easily extend it to add other features.

## The Protocol Buffer Definition

Take a look in [`calculator.proto`](calculator.proto) to see the full protocol buffer definition. If
Take a look in [`calculator.proto`](https://github.com/grpc-ecosystem/grpc-cloud-run-example/blob/master/golang/protos/calculator.proto) to see the full protocol buffer definition. If
you're not familiar with protocol buffers,
[take a moment to get acquainted.](https://developers.google.com/protocol-buffers)

Expand Down Expand Up @@ -43,7 +43,7 @@ operations. Then, we'll return the result of that operation.

## The Server

Let's start with the server. Take a look at [`main.go`](main.go) and [`server.go`](server.go).
Let's start with the server. Take a look at [`main.go`](https://github.com/grpc-ecosystem/grpc-cloud-run-example/blob/master/golang/server/main.go) and [`server.go`](https://github.com/grpc-ecosystem/grpc-cloud-run-example/blob/master/golang/server/server.go).
Google Cloud Run will set up an environment variable called `PORT` on which your
server should listen. The first thing we do is pull that from the environment:

Expand Down