mirror of
https://github.com/openfaas/faas.git
synced 2025-06-08 16:26: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(`
|
||||
<h1>
|
||||
👋 Hello World 🌍
|
||||
</h1>
|
||||
`)
|
||||
</h1>`)
|
||||
}
|
||||
```
|
||||
*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"
|
||||
)
|
||||
|
||||
// Handle a function invocation
|
||||
func Handle(req handler.Request) (handler.Response, error) {
|
||||
var err error
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user