()
| 9 | ) |
| 10 | |
| 11 | func ExampleFromContext() { |
| 12 | lambda.Start(func(ctx context.Context) (string, error) { |
| 13 | lc, _ := lambdacontext.FromContext(ctx) |
| 14 | log.Printf("Request ID: %s", lc.AwsRequestID) |
| 15 | log.Printf("Function ARN: %s", lc.InvokedFunctionArn) |
| 16 | return "success", nil |
| 17 | }) |
| 18 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…