Add sample function

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
This commit is contained in:
Alex Ellis (VMware)
2018-10-25 12:50:15 +01:00
committed by Alex Ellis
parent f5939c9a60
commit 63e948fce1
5 changed files with 162 additions and 1 deletions

View 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)
}