MCPcopy Index your code
hub / github.com/aws/aws-lambda-go / ExampleWithContextValue

Function ExampleWithContextValue

lambda/example_test.go:48–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46}
47
48func ExampleWithContextValue() {
49 lambda.StartWithOptions(
50 func(ctx context.Context) (string, error) {
51 return ctx.Value("foo").(string), nil
52 },
53 lambda.WithContextValue("foo", "bar"),
54 )
55}
56
57func ExampleWithSetEscapeHTML() {
58 lambda.StartWithOptions(

Callers

nothing calls this directly

Calls 3

StartWithOptionsFunction · 0.92
WithContextValueFunction · 0.92
ValueMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…