aws-lambda-go

AWS Lambda Go function not getting request body when called via API GW

冷暖自知 提交于 2019-12-07 08:44:36
问题 First off, one might say this question is very similar to HTTP request body not getting to AWS lambda function via AWS API Gateway or Getting json body in aws Lambda via API gateway However, none of these questions address using Golang, and the problem I have been having is finding an equivalent of the event parameter used everywhere in the Node.js documentation. Here's my Lambda Function: package main import ( "context" "encoding/json" "github.com/aws/aws-lambda-go/lambda" "github.com/aws

AWS Lambda Go function not getting request body when called via API GW

血红的双手。 提交于 2019-12-05 17:45:52
First off, one might say this question is very similar to HTTP request body not getting to AWS lambda function via AWS API Gateway or Getting json body in aws Lambda via API gateway However, none of these questions address using Golang, and the problem I have been having is finding an equivalent of the event parameter used everywhere in the Node.js documentation. Here's my Lambda Function: package main import ( "context" "encoding/json" "github.com/aws/aws-lambda-go/lambda" "github.com/aws/aws-lambda-go/events" "log" ) type MyReturn struct { Response string `json:"response"` } type