mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
readme mods
This commit is contained in:
@@ -41,17 +41,17 @@ That's it!
|
|||||||
cat hello.payload.json | fn run
|
cat hello.payload.json | fn run
|
||||||
```
|
```
|
||||||
|
|
||||||
2. We received our input through stdin
|
2. We received our function input through **stdin**
|
||||||
```go
|
```go
|
||||||
json.NewDecoder(os.Stdin).Decode(p)
|
json.NewDecoder(os.Stdin).Decode(p)
|
||||||
```
|
```
|
||||||
|
|
||||||
3. We wrote our output to stdout
|
3. We wrote our output to **stdout**
|
||||||
```go
|
```go
|
||||||
fmt.Printf("Hello")
|
fmt.Printf("Hello")
|
||||||
```
|
```
|
||||||
|
|
||||||
4. We sent stderr to the server logs
|
4. We sent **stderr** to the server logs
|
||||||
```go
|
```go
|
||||||
log.Println("here")
|
log.Println("here")
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user