From 12d44fab6a7d63749e97e2fc1e3e91575cc9e3ac Mon Sep 17 00:00:00 2001 From: Chad Arimura Date: Thu, 25 May 2017 14:51:10 -0700 Subject: [PATCH] readme mods --- examples/tutorial/hello/go/README.md | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/examples/tutorial/hello/go/README.md b/examples/tutorial/hello/go/README.md index 3ac866716..93b73d390 100644 --- a/examples/tutorial/hello/go/README.md +++ b/examples/tutorial/hello/go/README.md @@ -35,21 +35,25 @@ curl -H "Content-Type: application/json" -X POST -d @hello.payload.json http://l # In Review -1. We piped JSON data into the function at the command line: `cat hello.payload.json | fn run` +1. We piped JSON data into the function at the command line + ```sh + cat hello.payload.json | fn run + ``` -2. We received our input through stdin: `json.NewDecoder(os.Stdin).Decode(p)` +2. We received our input through stdin + ```go + json.NewDecoder(os.Stdin).Decode(p) + ``` 3. We wrote our output to stdout - -```go -fmt.Printf("Hello") -``` + ```go + fmt.Printf("Hello") + ``` 4. We sent stderr to the server logs - -```go -log.Println("here") -``` + ```go + log.Println("here") + ``` # Next Up ## [Tutorial 2: Input Parameters](examples/tutorial/params) \ No newline at end of file