Permalink
Browse files

Add sample function

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
  • Loading branch information...
alexellis committed Oct 25, 2018
1 parent f5939c9 commit 63e948fce111e774297ac7c9fbe0a5d1c6327141
@@ -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)
}

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -86,4 +86,7 @@ functions:
lang: dockerfile
handler: ./WordCountFunction
image: functions/wordcount:latest
business-strategy-generator:
lang: go
handler: ./business-strategy-generator
image: functions/business-strategy-generator:0.1

0 comments on commit 63e948f

Please sign in to comment.