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..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) 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: