mirror of
https://github.com/openfaas/faas.git
synced 2025-06-18 12:06:37 +00:00
Add sample function
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
This commit is contained in:
committed by
Alex Ellis
parent
f5939c9a60
commit
63e948fce1
14
sample-functions/business-strategy-generator/handler.go
Normal file
14
sample-functions/business-strategy-generator/handler.go
Normal file
@ -0,0 +1,14 @@
|
||||
package function
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/nishakm/strategy_generator/pkg"
|
||||
)
|
||||
|
||||
// Handle a serverless request
|
||||
func Handle(req []byte) string {
|
||||
|
||||
statement := pkg.Generate()
|
||||
return fmt.Sprintf("%s", statement)
|
||||
}
|
Reference in New Issue
Block a user