i have an example lambda i am trying to implement based on the official aws docs
https://docs.aws.amazon.com/lambda/latest/dg/lambda-golang.html
and this hello world application
https://github.com/awsdocs/aws-lambda-developer-guide/tree/main/sample-apps/blank-go
I was able to get the lambda to execute, but I am seeing each line of the json sent as a separate cloudwatch log message. i'm not sure why. i havent seen this behavior in python, nodejs, and rust. i'm not sure how the custom lambda runtime is interpretting what go is producing from the marshal indent function. any help would be greatly appreciated.
Go is implemented differently than other managed runtimes. Because Go compiles natively to an executable binary, it doesn't require a dedicated language runtime. Use an OS-only runtime (the provided runtime family) to deploy Go functions to Lambda.