Skip to content

Instantly share code, notes, and snippets.

View IggyBlob's full-sized avatar

IggyBlob

  • Hagenberg, Austria
View GitHub Profile
@IggyBlob
IggyBlob / lambdainvoker.go
Created September 1, 2018 13:48
Go Lambda Invoker - Triggers the execution of a locally-run AWS Lambda function written in Go
package main
import (
"encoding/json"
"fmt"
"github.com/aws/aws-lambda-go/lambda/messages"
"github.com/aws/aws-lambda-go/lambdacontext"
"log"
"net/rpc"
)
ifeq ($(OS),Windows_NT)
EXEEXT = .exe
else
EXEEXT =
endif
TARGET = myprog$(EXEEXT)
# compiler settings
CC = g++-7