From 119f71f654a0691184d1c494f02ec5925162ef3f Mon Sep 17 00:00:00 2001 From: bootstrapsp Date: Thu, 16 Apr 2020 17:59:43 +0200 Subject: [PATCH 1/2] fixed URL redirects for server.go and main.go, minor updates to gitignore --- .gitignore | 1 + golang/.gitignore | 1 + golang/README.md | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1d74e21 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.vscode/ diff --git a/golang/.gitignore b/golang/.gitignore index 99ef93c..bcf000b 100644 --- a/golang/.gitignore +++ b/golang/.gitignore @@ -3,3 +3,4 @@ protoc-3.11.4-linux-x86_64/ # Exclude Protobuf-generated Golang sources *.pb.go +.vscode/ \ No newline at end of file diff --git a/golang/README.md b/golang/README.md index b301407..99cd2b7 100644 --- a/golang/README.md +++ b/golang/README.md @@ -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`]([main.go](https://github.com/bootstrapsp/grpc-cloud-run-example/blob/master/golang/server/main.go)) and [`server.go`]([server.go](https://github.com/bootstrapsp/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: From 77951e300e17dbfefd62b12fdf1b37d9b33b2eab Mon Sep 17 00:00:00 2001 From: bootstrapsp Date: Thu, 16 Apr 2020 18:09:12 +0200 Subject: [PATCH 2/2] updated links --- golang/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/golang/README.md b/golang/README.md index 99cd2b7..306ada2 100644 --- a/golang/README.md +++ b/golang/README.md @@ -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) @@ -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](https://github.com/bootstrapsp/grpc-cloud-run-example/blob/master/golang/server/main.go)) and [`server.go`]([server.go](https://github.com/bootstrapsp/grpc-cloud-run-example/blob/master/golang/server/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: