mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
24 lines
246 B
Markdown
24 lines
246 B
Markdown
This is a worker that just echoes the "input" param in the payload.
|
|
|
|
eg:
|
|
|
|
This input:
|
|
|
|
```json
|
|
{
|
|
"name": "Johnny Utah"
|
|
}
|
|
```
|
|
|
|
Will output:
|
|
|
|
```
|
|
Hello Johnny Utah!
|
|
```
|
|
|
|
## Try it
|
|
|
|
```
|
|
echo '{"name":"Johnny"}' | docker run --rm -i iron/hello
|
|
```
|