Last active
May 3, 2017 01:58
-
-
Save mweagle/0b2194e35d850786bf1ae8b114685dcd to your computer and use it in GitHub Desktop.
Original source
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"os" | |
sparta "github.com/mweagle/Sparta" | |
"github.com/mweagle/SpartaPython" | |
"github.com/mweagle/Sparta/cgo" | |
) | |
//////////////////////////////////////////////////////////////////////////////// | |
// Main | |
func main() { | |
lambdaFn, _ := sparta.NewNamedLambda(sparta.IAMRoleDefinition{}, | |
spartapython.HelloWorld, | |
"HelloWorldSpartaCGO", | |
nil) | |
var lambdaFunctions []*sparta.LambdaAWSInfo | |
lambdaFunctions = append(lambdaFunctions, lambdaFn) | |
err := cgo.Main("SpartaHelloPythonCGO", | |
fmt.Sprintf("Test HelloWorld resource command"), | |
lambdaFunctions, | |
nil, | |
nil) | |
if err != nil { | |
fmt.Printf("ERROR: %s\n", err.Error()) | |
os.Exit(1) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment