mirror of
https://github.com/openfaas/faas.git
synced 2025-06-09 16:56:47 +00:00
Shorten code examples
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
This commit is contained in:
parent
15019f1dcb
commit
4d77785fe5
@ -107,8 +107,7 @@ Official templates exist for many popular languages and are easily extensible wi
|
|||||||
.succeed(`
|
.succeed(`
|
||||||
<h1>
|
<h1>
|
||||||
👋 Hello World 🌍
|
👋 Hello World 🌍
|
||||||
</h1>
|
</h1>`)
|
||||||
`)
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
*handler.js*
|
*handler.js*
|
||||||
@ -135,7 +134,6 @@ Official templates exist for many popular languages and are easily extensible wi
|
|||||||
"github.com/openfaas-incubator/go-function-sdk"
|
"github.com/openfaas-incubator/go-function-sdk"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Handle a function invocation
|
|
||||||
func Handle(req handler.Request) (handler.Response, error) {
|
func Handle(req handler.Request) (handler.Response, error) {
|
||||||
var err error
|
var err error
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user