mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
readme mods
This commit is contained in:
@@ -35,17 +35,9 @@ curl -H "Content-Type: application/json" -X POST -d @hello.payload.json http://l
|
|||||||
|
|
||||||
# In Review
|
# In Review
|
||||||
|
|
||||||
1. We piped JSON data into the function at the command line
|
1. We piped JSON data into the function at the command line: `cat hello.payload.json | fn run`
|
||||||
|
|
||||||
```sh
|
2. We received our input through stdin: `json.NewDecoder(os.Stdin).Decode(p)`
|
||||||
cat hello.payload.json | fn run
|
|
||||||
```
|
|
||||||
|
|
||||||
2. We received our input through stdin
|
|
||||||
|
|
||||||
```go
|
|
||||||
json.NewDecoder(os.Stdin).Decode(p)
|
|
||||||
```
|
|
||||||
|
|
||||||
3. We wrote our output to stdout
|
3. We wrote our output to stdout
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user