()
| 37 | } |
| 38 | |
| 39 | func ExampleWithContext() { |
| 40 | lambda.StartWithOptions( |
| 41 | func(ctx context.Context) (string, error) { |
| 42 | return ctx.Value("foo").(string), nil |
| 43 | }, |
| 44 | lambda.WithContext(context.WithValue(context.Background(), "foo", "bar")), |
| 45 | ) |
| 46 | } |
| 47 | |
| 48 | func ExampleWithContextValue() { |
| 49 | lambda.StartWithOptions( |
nothing calls this directly
no test coverage detected
searching dependent graphs…