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

Function NewContext

lambdacontext/context.go:126–128  ·  view source on GitHub ↗

NewContext returns a new Context that carries value lc.

(parent context.Context, lc *LambdaContext)

Source from the content-addressed store, hash-verified

124
125// NewContext returns a new Context that carries value lc.
126func NewContext(parent context.Context, lc *LambdaContext) context.Context {
127 return context.WithValue(parent, contextKey, lc)
128}
129
130// FromContext returns the LambdaContext value stored in ctx, if any.
131func FromContext(ctx context.Context) (*LambdaContext, bool) {

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…